|
1 |
| -error[E0518]: attribute should be applied to function |
| 1 | +error[E0518]: attribute should be applied to function or closure |
2 | 2 | --> $DIR/issue-43106-gating-of-inline.rs:21:1
|
3 | 3 | |
|
4 | 4 | LL | #[inline = "2100"]
|
5 | 5 | | ^^^^^^^^^^^^^^^^^^
|
6 |
| -LL | //~^ ERROR attribute should be applied to function |
| 6 | +LL | //~^ ERROR attribute should be applied to function or closure |
7 | 7 | LL | / mod inline {
|
8 | 8 | LL | | mod inner { #![inline="2100"] }
|
9 |
| -LL | | //~^ ERROR attribute should be applied to function |
| 9 | +LL | | //~^ ERROR attribute should be applied to function or closure |
10 | 10 | LL | |
|
11 | 11 | ... |
|
12 |
| -LL | | //~^ ERROR attribute should be applied to function |
| 12 | +LL | | //~^ ERROR attribute should be applied to function or closure |
13 | 13 | LL | | }
|
14 |
| - | |_- not a function |
| 14 | + | |_- not a function or closure |
15 | 15 |
|
16 |
| -error[E0518]: attribute should be applied to function |
| 16 | +error[E0518]: attribute should be applied to function or closure |
17 | 17 | --> $DIR/issue-43106-gating-of-inline.rs:24:17
|
18 | 18 | |
|
19 | 19 | LL | mod inner { #![inline="2100"] }
|
20 |
| - | ------------^^^^^^^^^^^^^^^^^-- not a function |
| 20 | + | ------------^^^^^^^^^^^^^^^^^-- not a function or closure |
21 | 21 |
|
22 |
| -error[E0518]: attribute should be applied to function |
| 22 | +error[E0518]: attribute should be applied to function or closure |
23 | 23 | --> $DIR/issue-43106-gating-of-inline.rs:29:5
|
24 | 24 | |
|
25 | 25 | LL | #[inline = "2100"] struct S;
|
26 |
| - | ^^^^^^^^^^^^^^^^^^ --------- not a function |
| 26 | + | ^^^^^^^^^^^^^^^^^^ --------- not a function or closure |
27 | 27 |
|
28 |
| -error[E0518]: attribute should be applied to function |
| 28 | +error[E0518]: attribute should be applied to function or closure |
29 | 29 | --> $DIR/issue-43106-gating-of-inline.rs:32:5
|
30 | 30 | |
|
31 | 31 | LL | #[inline = "2100"] type T = S;
|
32 |
| - | ^^^^^^^^^^^^^^^^^^ ----------- not a function |
| 32 | + | ^^^^^^^^^^^^^^^^^^ ----------- not a function or closure |
33 | 33 |
|
34 |
| -error[E0518]: attribute should be applied to function |
| 34 | +error[E0518]: attribute should be applied to function or closure |
35 | 35 | --> $DIR/issue-43106-gating-of-inline.rs:35:5
|
36 | 36 | |
|
37 | 37 | LL | #[inline = "2100"] impl S { }
|
38 |
| - | ^^^^^^^^^^^^^^^^^^ ---------- not a function |
| 38 | + | ^^^^^^^^^^^^^^^^^^ ---------- not a function or closure |
39 | 39 |
|
40 | 40 | error: aborting due to 5 previous errors
|
41 | 41 |
|
|
0 commit comments