3 fn _f<F: fn(), G>(_: impl fn(), _: &dyn fn())
4 //~^ ERROR expected identifier, found keyword `fn`
5 //~| ERROR expected identifier, found keyword `fn`
6 //~| ERROR expected identifier, found keyword `fn`
7 //~| HELP use `Fn` to refer to the trait
8 //~| HELP use `Fn` to refer to the trait
9 //~| HELP use `Fn` to refer to the trait
12 //~^ ERROR expected identifier, found keyword `fn`
13 //~| HELP use `Fn` to refer to the trait
16 fn _g<A: struct, B>(_: impl struct, _: &dyn struct)
17 //~^ ERROR expected identifier, found keyword `struct`
18 //~| ERROR expected identifier, found keyword `struct`
19 //~| ERROR expected identifier, found keyword `struct`
20 //~| ERROR cannot find trait `r#struct` in this scope
21 //~| ERROR cannot find trait `r#struct` in this scope
22 //~| ERROR cannot find trait `r#struct` in this scope
23 //~| HELP a trait with a similar name exists
24 //~| HELP a trait with a similar name exists
25 //~| HELP a trait with a similar name exists
26 //~| HELP escape `struct` to use it as an identifier
27 //~| HELP escape `struct` to use it as an identifier
28 //~| HELP escape `struct` to use it as an identifier
31 //~^ ERROR expected identifier, found keyword `struct`
32 //~| ERROR cannot find trait `r#struct` in this scope
33 //~| HELP a trait with a similar name exists
34 //~| HELP escape `struct` to use it as an identifier