]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/anon-params-denied-2018.rs
1 // Tests that anonymous parameters are a hard error in edition 2018.
6 fn foo(i32); //~ expected one of `:` or `@`, found `)`
8 fn bar_with_default_impl(String
, String
) {}
9 //~^ ERROR expected one of `:`
10 //~| ERROR expected one of `:`
12 // do not complain about missing `b`
13 fn baz(a
:usize, b
, c
: usize) -> usize { //~ ERROR expected one of `:`