fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error[E0518]: attribute should be applied to function or closure 2 --> $DIR/inline-trait-and-foreign-items.rs:30:5 3 | 4LL | #[inline] 5 | ^^^^^^^^^ 6LL | static X: u32; 7 | -------------- not a function or closure 8 9error[E0518]: attribute should be applied to function or closure 10 --> $DIR/inline-trait-and-foreign-items.rs:33:5 11 | 12LL | #[inline] 13 | ^^^^^^^^^ 14LL | type T; 15 | ------- not a function or closure 16 17warning: `#[inline]` is ignored on constants 18 --> $DIR/inline-trait-and-foreign-items.rs:7:5 19 | 20LL | #[inline] 21 | ^^^^^^^^^ 22 | 23note: lint level defined here 24 --> $DIR/inline-trait-and-foreign-items.rs:4:9 25 | 26LL | #![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> 30 31error[E0518]: attribute should be applied to function or closure 32 --> $DIR/inline-trait-and-foreign-items.rs:11:5 33 | 34LL | #[inline] 35 | ^^^^^^^^^ 36LL | type T; 37 | ------- not a function or closure 38 39warning: `#[inline]` is ignored on constants 40 --> $DIR/inline-trait-and-foreign-items.rs:18:5 41 | 42LL | #[inline] 43 | ^^^^^^^^^ 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> 47 48error[E0518]: attribute should be applied to function or closure 49 --> $DIR/inline-trait-and-foreign-items.rs:22:5 50 | 51LL | #[inline] 52 | ^^^^^^^^^ 53LL | type T = Self; 54 | -------------- not a function or closure 55 56error[E0518]: attribute should be applied to function or closure 57 --> $DIR/inline-trait-and-foreign-items.rs:25:5 58 | 59LL | #[inline] 60 | ^^^^^^^^^ 61LL | type U = impl Trait; 62 | -------------------- not a function or closure 63 64error: could not find defining uses 65 --> $DIR/inline-trait-and-foreign-items.rs:26:5 66 | 67LL | type U = impl Trait; 68 | ^^^^^^^^^^^^^^^^^^^^ 69 70error: aborting due to 6 previous errors 71 72For more information about this error, try `rustc --explain E0518`.