fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: attribute should be applied to a function definition 2 --> $DIR/issue-54044.rs:3:1 3 | 4LL | #[cold] 5 | ^^^^^^^ 6... 7LL | struct Foo; 8 | ----------- not a function definition 9 | 10 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 11note: the lint level is defined here 12 --> $DIR/issue-54044.rs:1:9 13 | 14LL | #![deny(unused_attributes)] 15 | ^^^^^^^^^^^^^^^^^ 16 17error: attribute should be applied to a function definition 18 --> $DIR/issue-54044.rs:9:5 19 | 20LL | #[cold] 21 | ^^^^^^^ 22... 23LL | 5; 24 | - not a function definition 25 | 26 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 27 28error: aborting due to 2 previous errors 29