mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
f6c4679547
Use smaller span for suggesting adding `_:` ahead of a type: ``` error: expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)` --> $DIR/anon-params-denied-2018.rs:12:47 | LL | fn foo_with_qualified_path(<Bar as T>::Baz); | ^ expected one of 8 possible tokens | = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) help: explicitly ignore the parameter name | LL | fn foo_with_qualified_path(_: <Bar as T>::Baz); | ++ ``` |
||
---|---|---|
.. | ||
auxiliary | ||
anon-params-denied-2018.rs | ||
anon-params-denied-2018.stderr | ||
anon-params-deprecated.fixed | ||
anon-params-deprecated.rs | ||
anon-params-deprecated.stderr | ||
anon-params-edition-hygiene.rs |