Add context for RFC 1685 change in 2018 edition.
This commit adds a note providing context for the change to argument names being required in the 2018 edition for trait methods.
This commit is contained in:
parent
a2fb99bc17
commit
e4dc15a969
2 changed files with 10 additions and 4 deletions
|
|
@ -3,12 +3,16 @@ error: expected one of `:` or `@`, found `)`
|
|||
|
|
||||
LL | fn foo(i32); //~ expected one of `:` or `@`, found `)`
|
||||
| ^ expected one of `:` or `@` here
|
||||
|
|
||||
= note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
|
||||
|
||||
error: expected one of `:` or `@`, found `,`
|
||||
--> $DIR/anon-params-denied-2018.rs:8:36
|
||||
|
|
||||
LL | fn bar_with_default_impl(String, String) {}
|
||||
| ^ expected one of `:` or `@` here
|
||||
|
|
||||
= note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue