2022-07-11 12:59:04 -05:00
|
|
|
error: attribute should be applied to a function definition
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-54044.rs:3:1
|
2020-06-13 23:47:42 -05:00
|
|
|
|
|
|
|
|
LL | #[cold]
|
|
|
|
| ^^^^^^^
|
2020-07-11 09:29:35 -05:00
|
|
|
...
|
2020-06-13 23:47:42 -05:00
|
|
|
LL | struct Foo;
|
2022-07-11 12:59:04 -05:00
|
|
|
| ----------- not a function definition
|
2020-07-11 09:29:35 -05:00
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
2020-07-11 09:29:35 -05:00
|
|
|
note: the lint level is defined here
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-54044.rs:1:9
|
2020-07-11 09:29:35 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(unused_attributes)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2020-06-13 23:47:42 -05:00
|
|
|
|
2022-07-11 12:59:04 -05:00
|
|
|
error: attribute should be applied to a function definition
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-54044.rs:9:5
|
2020-06-13 23:47:42 -05:00
|
|
|
|
|
|
|
|
LL | #[cold]
|
|
|
|
| ^^^^^^^
|
2020-07-11 09:29:35 -05:00
|
|
|
...
|
2020-06-13 23:47:42 -05:00
|
|
|
LL | 5;
|
2022-07-11 12:59:04 -05:00
|
|
|
| - not a function definition
|
2020-07-11 09:29:35 -05:00
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
2020-06-13 23:47:42 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|