rust/tests/ui/issues/issue-54044.stderr

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

30 lines
823 B
Plaintext
Raw Normal View History

error: attribute should be applied to a function definition
--> $DIR/issue-54044.rs:3:1
2020-06-13 23:47:42 -05:00
|
LL | #[cold]
| ^^^^^^^
...
2020-06-13 23:47:42 -05:00
LL | struct Foo;
| ----------- not a function definition
|
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!
note: the lint level is defined here
--> $DIR/issue-54044.rs:1:9
|
LL | #![deny(unused_attributes)]
| ^^^^^^^^^^^^^^^^^
2020-06-13 23:47:42 -05:00
error: attribute should be applied to a function definition
--> $DIR/issue-54044.rs:9:5
2020-06-13 23:47:42 -05:00
|
LL | #[cold]
| ^^^^^^^
...
2020-06-13 23:47:42 -05:00
LL | 5;
| - not a function definition
|
= 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