]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-54044.stderr
New upstream version 1.53.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-54044.stderr
1 error: attribute should be applied to a function
2 --> $DIR/issue-54044.rs:3:1
3 |
4 LL | #[cold]
5 | ^^^^^^^
6 ...
7 LL | struct Foo;
8 | ----------- not a function
9 |
10 note: the lint level is defined here
11 --> $DIR/issue-54044.rs:1:9
12 |
13 LL | #![deny(unused_attributes)]
14 | ^^^^^^^^^^^^^^^^^
15 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
16
17 error: attribute should be applied to a function
18 --> $DIR/issue-54044.rs:9:5
19 |
20 LL | #[cold]
21 | ^^^^^^^
22 ...
23 LL | 5;
24 | - not a function
25 |
26 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
27
28 error: aborting due to 2 previous errors
29