]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/issues/issue-65122-mac-invoc-in-mut-patterns.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / parser / issues / issue-65122-mac-invoc-in-mut-patterns.stderr
CommitLineData
e1599b0c
XL
1error: `mut` must be followed by a named binding
2 --> $DIR/issue-65122-mac-invoc-in-mut-patterns.rs:6:13
3 |
4LL | let mut $eval = ();
5 | ^^^^^^^^^ help: remove the `mut` prefix: `does_not_exist!()`
6...
7LL | 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
13error: expected identifier, found `does_not_exist!()`
14 --> $DIR/issue-65122-mac-invoc-in-mut-patterns.rs:13:17
15 |
16LL | let mut $eval = ();
17 | ^^^^^ expected identifier
18...
19LL | 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
24error: `mut` must be followed by a named binding
25 --> $DIR/issue-65122-mac-invoc-in-mut-patterns.rs:13:13
26 |
27LL | let mut $eval = ();
28 | ^^^ help: remove the `mut` prefix: `does_not_exist!()`
29...
30LL | 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
36error: 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 39LL | mac2! { does_not_exist!() }
e1599b0c
XL
40 | ^^^^^^^^^^^^^^
41
42error: 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 45LL | mac1! { does_not_exist!() }
e1599b0c
XL
46 | ^^^^^^^^^^^^^^
47
48error: aborting due to 5 previous errors
49