]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-65122-mac-invoc-in-mut-patterns.stderr
Rollup merge of #92399 - Veeupup:fix_vec_typo, r=Dylan-DPC
[rust.git] / src / test / ui / parser / issues / issue-65122-mac-invoc-in-mut-patterns.stderr
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`
11    = note: this error originates in the macro `mac1` (in Nightly builds, run with -Z macro-backtrace for more info)
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
21    |
22    = note: this error originates in the macro `mac2` (in Nightly builds, run with -Z macro-backtrace for more info)
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`
34    = note: this error originates in the macro `mac2` (in Nightly builds, run with -Z macro-backtrace for more info)
35
36 error: cannot find macro `does_not_exist` in this scope
37   --> $DIR/issue-65122-mac-invoc-in-mut-patterns.rs:22:13
38    |
39 LL |     mac2! { does_not_exist!() }
40    |             ^^^^^^^^^^^^^^
41
42 error: cannot find macro `does_not_exist` in this scope
43   --> $DIR/issue-65122-mac-invoc-in-mut-patterns.rs:20:13
44    |
45 LL |     mac1! { does_not_exist!() }
46    |             ^^^^^^^^^^^^^^
47
48 error: aborting due to 5 previous errors
49