]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-54044.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-54044.rs
1 #![deny(unused_attributes)] //~ NOTE lint level is defined here
2
3 #[cold]
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
7
8 fn main() {
9     #[cold]
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
13 }