]>
Commit | Line | Data |
---|---|---|
60c5eb7d | 1 | error: attribute must be of the form `#[inline]` or `#[inline(always|never)]` |
9fa01778 XL |
2 | --> $DIR/issue-43106-gating-of-inline.rs:17:5 |
3 | | | |
4 | LL | #[inline = "2100"] fn f() { } | |
5 | | ^^^^^^^^^^^^^^^^^^ | |
6 | | | |
60c5eb7d | 7 | = note: `#[deny(ill_formed_attribute_input)]` on by default |
9fa01778 XL |
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> | |
10 | ||
83c7162d | 11 | error[E0518]: attribute should be applied to function or closure |
0731742a | 12 | --> $DIR/issue-43106-gating-of-inline.rs:11:1 |
ff7c6d11 | 13 | | |
9fa01778 XL |
14 | LL | #[inline] |
15 | | ^^^^^^^^^ | |
532ac7d7 | 16 | LL | |
0531ce1d | 17 | LL | / mod inline { |
9fa01778 | 18 | LL | | mod inner { #![inline] } |
532ac7d7 | 19 | LL | | |
0531ce1d | 20 | LL | | |
ff7c6d11 | 21 | ... | |
532ac7d7 | 22 | LL | | |
0531ce1d | 23 | LL | | } |
83c7162d | 24 | | |_- not a function or closure |
ff7c6d11 | 25 | |
83c7162d | 26 | error[E0518]: attribute should be applied to function or closure |
0731742a | 27 | --> $DIR/issue-43106-gating-of-inline.rs:14:17 |
ff7c6d11 | 28 | | |
9fa01778 XL |
29 | LL | mod inner { #![inline] } |
30 | | ------------^^^^^^^^^^-- not a function or closure | |
ff7c6d11 | 31 | |
83c7162d | 32 | error[E0518]: attribute should be applied to function or closure |
9fa01778 | 33 | --> $DIR/issue-43106-gating-of-inline.rs:21:5 |
ff7c6d11 | 34 | | |
9fa01778 XL |
35 | LL | #[inline] struct S; |
36 | | ^^^^^^^^^ --------- not a function or closure | |
ff7c6d11 | 37 | |
83c7162d | 38 | error[E0518]: attribute should be applied to function or closure |
9fa01778 | 39 | --> $DIR/issue-43106-gating-of-inline.rs:24:5 |
ff7c6d11 | 40 | | |
9fa01778 XL |
41 | LL | #[inline] type T = S; |
42 | | ^^^^^^^^^ ----------- not a function or closure | |
ff7c6d11 | 43 | |
83c7162d | 44 | error[E0518]: attribute should be applied to function or closure |
9fa01778 | 45 | --> $DIR/issue-43106-gating-of-inline.rs:27:5 |
ff7c6d11 | 46 | | |
9fa01778 XL |
47 | LL | #[inline] impl S { } |
48 | | ^^^^^^^^^ ---------- not a function or closure | |
ff7c6d11 | 49 | |
60c5eb7d | 50 | error: aborting due to 6 previous errors |
ff7c6d11 | 51 | |
0531ce1d | 52 | For more information about this error, try `rustc --explain E0518`. |