2022-07-11 17:59:04 +00:00
|
|
|
error: attribute should be applied to a function definition
|
2021-04-03 11:05:11 +00:00
|
|
|
--> $DIR/issue-54044.rs:3:1
|
2020-06-14 04:47:42 +00:00
|
|
|
|
|
|
|
|
LL | #[cold]
|
|
|
|
| ^^^^^^^
|
2020-07-11 14:29:35 +00:00
|
|
|
...
|
2020-06-14 04:47:42 +00:00
|
|
|
LL | struct Foo;
|
2022-07-11 17:59:04 +00:00
|
|
|
| ----------- not a function definition
|
2020-07-11 14:29:35 +00:00
|
|
|
|
|
2022-09-18 15:55:36 +00: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 14:29:35 +00:00
|
|
|
note: the lint level is defined here
|
2021-04-03 11:05:11 +00:00
|
|
|
--> $DIR/issue-54044.rs:1:9
|
2020-07-11 14:29:35 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(unused_attributes)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2020-06-14 04:47:42 +00:00
|
|
|
|
2022-07-11 17:59:04 +00:00
|
|
|
error: attribute should be applied to a function definition
|
2021-04-03 11:05:11 +00:00
|
|
|
--> $DIR/issue-54044.rs:9:5
|
2020-06-14 04:47:42 +00:00
|
|
|
|
|
|
|
|
LL | #[cold]
|
|
|
|
| ^^^^^^^
|
2020-07-11 14:29:35 +00:00
|
|
|
...
|
2020-06-14 04:47:42 +00:00
|
|
|
LL | 5;
|
2022-07-11 17:59:04 +00:00
|
|
|
| - not a function definition
|
2020-07-11 14:29:35 +00: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-14 04:47:42 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|