]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-54044.stderr
Rollup merge of #86479 - exphp-forks:float-debug-exponential, r=yaahc
[rust.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