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