fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.8 KiB49 linesraw
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`
11   = note: this error originates in the macro `mac1` (in Nightly builds, run with -Z macro-backtrace for more info)
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
21   |
22   = note: this error originates in the macro `mac2` (in Nightly builds, run with -Z macro-backtrace for more info)
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`
34   = note: this error originates in the macro `mac2` (in Nightly builds, run with -Z macro-backtrace for more info)
35
36error: cannot find macro `does_not_exist` in this scope
37  --> $DIR/issue-65122-mac-invoc-in-mut-patterns.rs:22:13
38   |
39LL |     mac2! { does_not_exist!() }
40   |             ^^^^^^^^^^^^^^
41
42error: cannot find macro `does_not_exist` in this scope
43  --> $DIR/issue-65122-mac-invoc-in-mut-patterns.rs:20:13
44   |
45LL |     mac1! { does_not_exist!() }
46   |             ^^^^^^^^^^^^^^
47
48error: aborting due to 5 previous errors
49