1 error[E0518]: attribute should be applied to function or closure
2 --> $DIR/inline-trait-and-foreign-items.rs:30:5
7 | -------------- not a function or closure
9 error[E0518]: attribute should be applied to function or closure
10 --> $DIR/inline-trait-and-foreign-items.rs:33:5
15 | ------- not a function or closure
17 warning: `#[inline]` is ignored on constants
18 --> $DIR/inline-trait-and-foreign-items.rs:7:5
23 note: the lint level is defined here
24 --> $DIR/inline-trait-and-foreign-items.rs:4:9
26 LL | #![warn(unused_attributes)]
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: see issue #65833 <https://github.com/rust-lang/rust/issues/65833> for more information
31 error[E0518]: attribute should be applied to function or closure
32 --> $DIR/inline-trait-and-foreign-items.rs:11:5
37 | ------- not a function or closure
39 warning: `#[inline]` is ignored on constants
40 --> $DIR/inline-trait-and-foreign-items.rs:18:5
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: see issue #65833 <https://github.com/rust-lang/rust/issues/65833> for more information
48 error[E0518]: attribute should be applied to function or closure
49 --> $DIR/inline-trait-and-foreign-items.rs:22: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:25:5
61 LL | type U = impl Trait;
62 | -------------------- not a function or closure
64 error: could not find defining uses
65 --> $DIR/inline-trait-and-foreign-items.rs:26:5
67 LL | type U = impl Trait;
68 | ^^^^^^^^^^^^^^^^^^^^
70 error: aborting due to 6 previous errors; 2 warnings emitted
72 For more information about this error, try `rustc --explain E0518`.