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

error: attribute should be applied to a function definition
  --> $DIR/issue-54044.rs:9:5
   |
LL |     #[cold]
   |     ^^^^^^^
...
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!

error: aborting due to 2 previous errors