1 // Tests that anonymous parameters are a hard error in edition 2018.
6 fn foo(i32); //~ expected one of `:`, `@`, or `|`, found `)`
8 // Also checks with `&`
9 fn foo_with_ref(&mut i32);
10 //~^ ERROR expected one of `:`, `@`, or `|`, found `)`
12 fn foo_with_qualified_path(<Bar as T>::Baz);
13 //~^ ERROR expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)`
15 fn foo_with_qualified_path_and_ref(&<Bar as T>::Baz);
16 //~^ ERROR expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)`
18 fn foo_with_multiple_qualified_paths(<Bar as T>::Baz, <Bar as T>::Baz);
19 //~^ ERROR expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `,`
20 //~| ERROR expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)`
22 fn bar_with_default_impl(String, String) {}
23 //~^ ERROR expected one of `:`
24 //~| ERROR expected one of `:`
26 // do not complain about missing `b`
27 fn baz(a:usize, b, c: usize) -> usize { //~ ERROR expected one of `:`