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