]>
Commit | Line | Data |
---|---|---|
e1599b0c XL |
1 | error: `mut` must be followed by a named binding |
2 | --> $DIR/issue-65122-mac-invoc-in-mut-patterns.rs:6:13 | |
3 | | | |
4 | LL | let mut $eval = (); | |
5 | | ^^^^^^^^^ help: remove the `mut` prefix: `does_not_exist!()` | |
6 | ... | |
7 | LL | mac1! { does_not_exist!() } | |
8 | | --------------------------- in this macro invocation | |
9 | | | |
10 | = note: `mut` may be followed by `variable` and `variable @ pattern` | |
17df50a5 | 11 | = note: this error originates in the macro `mac1` (in Nightly builds, run with -Z macro-backtrace for more info) |
e1599b0c XL |
12 | |
13 | error: expected identifier, found `does_not_exist!()` | |
14 | --> $DIR/issue-65122-mac-invoc-in-mut-patterns.rs:13:17 | |
15 | | | |
16 | LL | let mut $eval = (); | |
17 | | ^^^^^ expected identifier | |
18 | ... | |
19 | LL | mac2! { does_not_exist!() } | |
20 | | --------------------------- in this macro invocation | |
74b04a01 | 21 | | |
17df50a5 | 22 | = note: this error originates in the macro `mac2` (in Nightly builds, run with -Z macro-backtrace for more info) |
e1599b0c XL |
23 | |
24 | error: `mut` must be followed by a named binding | |
25 | --> $DIR/issue-65122-mac-invoc-in-mut-patterns.rs:13:13 | |
26 | | | |
27 | LL | let mut $eval = (); | |
28 | | ^^^ help: remove the `mut` prefix: `does_not_exist!()` | |
29 | ... | |
30 | LL | mac2! { does_not_exist!() } | |
31 | | --------------------------- in this macro invocation | |
32 | | | |
33 | = note: `mut` may be followed by `variable` and `variable @ pattern` | |
17df50a5 | 34 | = note: this error originates in the macro `mac2` (in Nightly builds, run with -Z macro-backtrace for more info) |
e1599b0c XL |
35 | |
36 | error: cannot find macro `does_not_exist` in this scope | |
fc512014 | 37 | --> $DIR/issue-65122-mac-invoc-in-mut-patterns.rs:22:13 |
e1599b0c | 38 | | |
fc512014 | 39 | LL | mac2! { does_not_exist!() } |
e1599b0c XL |
40 | | ^^^^^^^^^^^^^^ |
41 | ||
42 | error: cannot find macro `does_not_exist` in this scope | |
fc512014 | 43 | --> $DIR/issue-65122-mac-invoc-in-mut-patterns.rs:20:13 |
e1599b0c | 44 | | |
fc512014 | 45 | LL | mac1! { does_not_exist!() } |
e1599b0c XL |
46 | | ^^^^^^^^^^^^^^ |
47 | ||
48 | error: aborting due to 5 previous errors | |
49 |