]> git.lizzy.rs Git - rust.git/blob - src/test/ui/anon-params-denied-2018.rs
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / anon-params-denied-2018.rs
1 // Tests that anonymous parameters are a hard error in edition 2018.
2
3 // edition:2018
4
5 trait T {
6     fn foo(i32); //~ expected one of `:` or `@`, found `)`
7
8     fn bar_with_default_impl(String, String) {}
9     //~^ ERROR expected one of `:` or `@`, found `,`
10 }
11
12 fn main() {}