2025-08-09 20:41:01 +02:00
|
|
|
error: `#[cold]` attribute cannot be used on structs
|
2025-07-13 16:06:48 -04:00
|
|
|
--> $DIR/cold-attribute-application-54044.rs:4:1
|
2020-06-14 00:47:42 -04:00
|
|
|
|
|
|
|
|
|
LL | #[cold]
|
|
|
|
|
| ^^^^^^^
|
2020-07-11 10:29:35 -04:00
|
|
|
|
|
2022-09-18 19:55:36 +04:00
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
2025-08-09 20:41:01 +02:00
|
|
|
= help: `#[cold]` can only be applied to functions
|
2020-07-11 10:29:35 -04:00
|
|
|
note: the lint level is defined here
|
2025-07-13 16:06:48 -04:00
|
|
|
--> $DIR/cold-attribute-application-54044.rs:2:9
|
2020-07-11 10:29:35 -04:00
|
|
|
|
|
|
|
|
|
LL | #![deny(unused_attributes)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2020-06-14 00:47:42 -04:00
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[cold]` attribute cannot be used on expressions
|
2025-07-13 16:06:48 -04:00
|
|
|
--> $DIR/cold-attribute-application-54044.rs:10:5
|
2020-06-14 00:47:42 -04:00
|
|
|
|
|
|
|
|
|
LL | #[cold]
|
|
|
|
|
| ^^^^^^^
|
2020-07-11 10:29:35 -04:00
|
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
2025-08-09 20:41:01 +02:00
|
|
|
= help: `#[cold]` can only be applied to functions
|
2020-06-14 00:47:42 -04:00
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|