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