]> git.lizzy.rs Git - rust.git/blob - src/test/ui/anon-params-denied-2018.stderr
Add context for RFC 1685 change in 2018 edition.
[rust.git] / src / test / ui / anon-params-denied-2018.stderr
1 error: expected one of `:` or `@`, found `)`
2   --> $DIR/anon-params-denied-2018.rs:6:15
3    |
4 LL |     fn foo(i32); //~ expected one of `:` or `@`, found `)`
5    |               ^ expected one of `:` or `@` here
6    |
7    = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
8
9 error: expected one of `:` or `@`, found `,`
10   --> $DIR/anon-params-denied-2018.rs:8:36
11    |
12 LL |     fn bar_with_default_impl(String, String) {}
13    |                                    ^ expected one of `:` or `@` here
14    |
15    = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
16
17 error: aborting due to 2 previous errors
18