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