|
1 | 1 | error[E0518]: attribute should be applied to function or closure
|
2 |
| - --> $DIR/inline-trait-and-foreign-items.rs:26:5 |
| 2 | + --> $DIR/inline-trait-and-foreign-items.rs:30:5 |
3 | 3 | |
|
4 | 4 | LL | #[inline]
|
5 | 5 | | ^^^^^^^^^
|
6 | 6 | LL | static X: u32;
|
7 | 7 | | -------------- not a function or closure
|
8 | 8 |
|
9 | 9 | error[E0518]: attribute should be applied to function or closure
|
10 |
| - --> $DIR/inline-trait-and-foreign-items.rs:29:5 |
| 10 | + --> $DIR/inline-trait-and-foreign-items.rs:33:5 |
11 | 11 | |
|
12 | 12 | LL | #[inline]
|
13 | 13 | | ^^^^^^^^^
|
14 | 14 | LL | type T;
|
15 | 15 | | ------- not a function or closure
|
16 | 16 |
|
17 |
| -error[E0518]: attribute should be applied to function or closure |
18 |
| - --> $DIR/inline-trait-and-foreign-items.rs:5:5 |
| 17 | +warning: `#[inline]` is ignored on constants |
| 18 | + --> $DIR/inline-trait-and-foreign-items.rs:7:5 |
19 | 19 | |
|
20 | 20 | LL | #[inline]
|
21 | 21 | | ^^^^^^^^^
|
22 |
| -LL | const X: u32; |
23 |
| - | ------------- not a function or closure |
| 22 | + | |
| 23 | +note: lint level defined here |
| 24 | + --> $DIR/inline-trait-and-foreign-items.rs:4:9 |
| 25 | + | |
| 26 | +LL | #![warn(unused_attributes)] |
| 27 | + | ^^^^^^^^^^^^^^^^^ |
| 28 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 29 | + = note: for more information, see issue #65833 <https://github.com/rust-lang/rust/issues/65833> |
24 | 30 |
|
25 | 31 | error[E0518]: attribute should be applied to function or closure
|
26 |
| - --> $DIR/inline-trait-and-foreign-items.rs:8:5 |
| 32 | + --> $DIR/inline-trait-and-foreign-items.rs:11:5 |
27 | 33 | |
|
28 | 34 | LL | #[inline]
|
29 | 35 | | ^^^^^^^^^
|
30 | 36 | LL | type T;
|
31 | 37 | | ------- not a function or closure
|
32 | 38 |
|
33 |
| -error[E0518]: attribute should be applied to function or closure |
34 |
| - --> $DIR/inline-trait-and-foreign-items.rs:15:5 |
| 39 | +warning: `#[inline]` is ignored on constants |
| 40 | + --> $DIR/inline-trait-and-foreign-items.rs:18:5 |
35 | 41 | |
|
36 | 42 | LL | #[inline]
|
37 | 43 | | ^^^^^^^^^
|
38 |
| -LL | const X: u32 = 0; |
39 |
| - | ----------------- not a function or closure |
| 44 | + | |
| 45 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 46 | + = note: for more information, see issue #65833 <https://github.com/rust-lang/rust/issues/65833> |
40 | 47 |
|
41 | 48 | error[E0518]: attribute should be applied to function or closure
|
42 |
| - --> $DIR/inline-trait-and-foreign-items.rs:18:5 |
| 49 | + --> $DIR/inline-trait-and-foreign-items.rs:22:5 |
43 | 50 | |
|
44 | 51 | LL | #[inline]
|
45 | 52 | | ^^^^^^^^^
|
46 | 53 | LL | type T = Self;
|
47 | 54 | | -------------- not a function or closure
|
48 | 55 |
|
49 | 56 | error[E0518]: attribute should be applied to function or closure
|
50 |
| - --> $DIR/inline-trait-and-foreign-items.rs:21:5 |
| 57 | + --> $DIR/inline-trait-and-foreign-items.rs:25:5 |
51 | 58 | |
|
52 | 59 | LL | #[inline]
|
53 | 60 | | ^^^^^^^^^
|
54 | 61 | LL | type U = impl Trait;
|
55 | 62 | | -------------------- not a function or closure
|
56 | 63 |
|
57 | 64 | error: could not find defining uses
|
58 |
| - --> $DIR/inline-trait-and-foreign-items.rs:22:5 |
| 65 | + --> $DIR/inline-trait-and-foreign-items.rs:26:5 |
59 | 66 | |
|
60 | 67 | LL | type U = impl Trait;
|
61 | 68 | | ^^^^^^^^^^^^^^^^^^^^
|
62 | 69 |
|
63 |
| -error: aborting due to 8 previous errors |
| 70 | +error: aborting due to 6 previous errors |
64 | 71 |
|
65 | 72 | For more information about this error, try `rustc --explain E0518`.
|
0 commit comments