1 error: attribute must be of the form `#[inline]` or `#[inline(always|never)]`
2 --> $DIR/issue-43106-gating-of-inline.rs:17:5
4 LL | #[inline = "2100"] fn f() { }
7 = note: `#[deny(ill_formed_attribute_input)]` on by default
8 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
9 = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
11 error[E0518]: attribute should be applied to function or closure
12 --> $DIR/issue-43106-gating-of-inline.rs:11:1
18 LL | | mod inner { #![inline] }
24 | |_- not a function or closure
26 error[E0518]: attribute should be applied to function or closure
27 --> $DIR/issue-43106-gating-of-inline.rs:14:17
29 LL | mod inner { #![inline] }
30 | ------------^^^^^^^^^^-- not a function or closure
32 error[E0518]: attribute should be applied to function or closure
33 --> $DIR/issue-43106-gating-of-inline.rs:21:5
35 LL | #[inline] struct S;
36 | ^^^^^^^^^ --------- not a function or closure
38 error[E0518]: attribute should be applied to function or closure
39 --> $DIR/issue-43106-gating-of-inline.rs:24:5
41 LL | #[inline] type T = S;
42 | ^^^^^^^^^ ----------- not a function or closure
44 error[E0518]: attribute should be applied to function or closure
45 --> $DIR/issue-43106-gating-of-inline.rs:27:5
47 LL | #[inline] impl S { }
48 | ^^^^^^^^^ ---------- not a function or closure
50 error: aborting due to 6 previous errors
52 For more information about this error, try `rustc --explain E0518`.