1 // ignore-tidy-linelength
2 #![deny(unused_attributes)] //~ NOTE lint level is defined here
5 //~^ ERROR attribute should be applied to a function
6 //~| WARN this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
7 struct Foo; //~ NOTE not a function
11 //~^ ERROR attribute should be applied to a function
12 //~| WARN this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
13 5; //~ NOTE not a function