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