|
1 | | -error: expected one of `!` or `::`, found `(` |
2 | | - --> $DIR/kw-in-item-pos-recovery-149692.rs:10:8 |
| 1 | +error: expected identifier, found keyword `Self` |
| 2 | + --> $DIR/kw-in-item-pos-recovery-149692.rs:10:4 |
| 3 | + | |
| 4 | +LL | m!(Self()); |
| 5 | + | ^^^^ expected identifier, found keyword |
| 6 | + |
| 7 | +error: missing `fn` or `struct` for function or struct definition |
| 8 | + --> $DIR/kw-in-item-pos-recovery-149692.rs:10:4 |
3 | 9 | | |
4 | 10 | LL | ($id:item()) => {} |
5 | 11 | | -------- while parsing argument for this `item` macro fragment |
6 | 12 | ... |
7 | 13 | LL | m!(Self()); |
8 | | - | ^ expected one of `!` or `::` |
| 14 | + | ^^^^ |
| 15 | + | |
| 16 | +help: if you meant to call a macro, try |
| 17 | + | |
| 18 | +LL | m!(Self!()); |
| 19 | + | + |
9 | 20 |
|
10 | | -error: expected one of `!` or `::`, found `{` |
11 | | - --> $DIR/kw-in-item-pos-recovery-149692.rs:13:8 |
| 21 | +error: expected identifier, found keyword `Self` |
| 22 | + --> $DIR/kw-in-item-pos-recovery-149692.rs:14:4 |
| 23 | + | |
| 24 | +LL | m!(Self{}); |
| 25 | + | ^^^^ expected identifier, found keyword |
| 26 | + |
| 27 | +error: missing `enum` or `struct` for enum or struct definition |
| 28 | + --> $DIR/kw-in-item-pos-recovery-149692.rs:14:4 |
12 | 29 | | |
13 | 30 | LL | ($id:item()) => {} |
14 | 31 | | -------- while parsing argument for this `item` macro fragment |
15 | 32 | ... |
16 | 33 | LL | m!(Self{}); |
17 | | - | ^ expected one of `!` or `::` |
| 34 | + | ^^^^ |
| 35 | + |
| 36 | +error: expected identifier, found keyword `crate` |
| 37 | + --> $DIR/kw-in-item-pos-recovery-149692.rs:18:4 |
| 38 | + | |
| 39 | +LL | m!(crate()); |
| 40 | + | ^^^^^ expected identifier, found keyword |
18 | 41 |
|
19 | | -error: expected one of `!` or `::`, found `(` |
20 | | - --> $DIR/kw-in-item-pos-recovery-149692.rs:16:9 |
| 42 | +error: missing `fn` or `struct` for function or struct definition |
| 43 | + --> $DIR/kw-in-item-pos-recovery-149692.rs:18:4 |
21 | 44 | | |
22 | 45 | LL | ($id:item()) => {} |
23 | 46 | | -------- while parsing argument for this `item` macro fragment |
24 | 47 | ... |
25 | 48 | LL | m!(crate()); |
26 | | - | ^ expected one of `!` or `::` |
| 49 | + | ^^^^^ |
| 50 | + | |
| 51 | +help: if you meant to call a macro, try |
| 52 | + | |
| 53 | +LL | m!(crate!()); |
| 54 | + | + |
27 | 55 |
|
28 | | -error: aborting due to 3 previous errors |
| 56 | +error: aborting due to 6 previous errors |
29 | 57 |
|
0 commit comments