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:
David Wood 2018-12-07 10:54:14 +01:00
parent a2fb99bc17
commit e4dc15a969
No known key found for this signature in database
GPG key ID: 01760B4F9F53F154
2 changed files with 10 additions and 4 deletions

View file

@ -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