1 warning: `#[inline]` is ignored on constants
2 --> $DIR/inline-trait-and-foreign-items.rs:7:5
7 note: the lint level is defined here
8 --> $DIR/inline-trait-and-foreign-items.rs:4:9
10 LL | #![warn(unused_attributes)]
12 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
13 = note: see issue #65833 <https://github.com/rust-lang/rust/issues/65833> for more information
15 error[E0518]: attribute should be applied to function or closure
16 --> $DIR/inline-trait-and-foreign-items.rs:11:5
21 | ------- not a function or closure
23 warning: `#[inline]` is ignored on constants
24 --> $DIR/inline-trait-and-foreign-items.rs:18:5
29 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
30 = note: see issue #65833 <https://github.com/rust-lang/rust/issues/65833> for more information
32 error[E0518]: attribute should be applied to function or closure
33 --> $DIR/inline-trait-and-foreign-items.rs:22:5
38 | -------------- not a function or closure
40 error[E0518]: attribute should be applied to function or closure
41 --> $DIR/inline-trait-and-foreign-items.rs:25:5
45 LL | type U = impl Trait;
46 | -------------------- not a function or closure
48 error[E0518]: attribute should be applied to function or closure
49 --> $DIR/inline-trait-and-foreign-items.rs:30:5
54 | -------------- not a function or closure
56 error[E0518]: attribute should be applied to function or closure
57 --> $DIR/inline-trait-and-foreign-items.rs:33:5
62 | ------- not a function or closure
64 error: could not find defining uses
65 --> $DIR/inline-trait-and-foreign-items.rs:26:14
67 LL | type U = impl Trait;
70 error: aborting due to 6 previous errors; 2 warnings emitted
72 For more information about this error, try `rustc --explain E0518`.