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