]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-54044.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / issues / issue-54044.stderr
CommitLineData
1b1a35ee
XL
1error: attribute should be applied to a function
2 --> $DIR/issue-54044.rs:4:1
3 |
4LL | #[cold]
5 | ^^^^^^^
6...
7LL | struct Foo;
8 | ----------- not a function
9 |
10note: the lint level is defined here
11 --> $DIR/issue-54044.rs:2:9
12 |
13LL | #![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
17error: attribute should be applied to a function
18 --> $DIR/issue-54044.rs:10:5
19 |
20LL | #[cold]
21 | ^^^^^^^
22...
23LL | 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
28error: aborting due to 2 previous errors
29