Files
rust/tests/ui/attributes/cold-attribute-application-54044.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
868 B
Plaintext
Raw Normal View History

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]
| ^^^^^^^
|
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!
= help: `#[cold]` can only be applied to functions
note: the lint level is defined here
2025-07-13 16:06:48 -04:00
--> $DIR/cold-attribute-application-54044.rs:2:9
|
LL | #![deny(unused_attributes)]
| ^^^^^^^^^^^^^^^^^
2020-06-14 00:47:42 -04: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]
| ^^^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= help: `#[cold]` can only be applied to functions
2020-06-14 00:47:42 -04:00
error: aborting due to 2 previous errors