1 error[E0518]: attribute should be applied to function or closure
2 --> $DIR/issue-43106-gating-of-inline.rs:21:1
4 LL | #[inline = "2100"]
6 LL | //~^ ERROR attribute should be applied to function or closure
8 LL | | mod inner { #![inline="2100"] }
9 LL | | //~^ ERROR attribute should be applied to function or closure
12 LL | | //~^ ERROR attribute should be applied to function or closure
14 | |_- not a function or closure
16 error[E0518]: attribute should be applied to function or closure
17 --> $DIR/issue-43106-gating-of-inline.rs:24:17
19 LL | mod inner { #![inline="2100"] }
20 | ------------^^^^^^^^^^^^^^^^^-- not a function or closure
22 error[E0518]: attribute should be applied to function or closure
23 --> $DIR/issue-43106-gating-of-inline.rs:29:5
25 LL | #[inline = "2100"] struct S;
26 | ^^^^^^^^^^^^^^^^^^ --------- not a function or closure
28 error[E0518]: attribute should be applied to function or closure
29 --> $DIR/issue-43106-gating-of-inline.rs:32:5
31 LL | #[inline = "2100"] type T = S;
32 | ^^^^^^^^^^^^^^^^^^ ----------- not a function or closure
34 error[E0518]: attribute should be applied to function or closure
35 --> $DIR/issue-43106-gating-of-inline.rs:35:5
37 LL | #[inline = "2100"] impl S { }
38 | ^^^^^^^^^^^^^^^^^^ ---------- not a function or closure
40 error: aborting due to 5 previous errors
42 For more information about this error, try `rustc --explain E0518`.