fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.5 KiB45 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
12error: expected identifier, found `does_not_exist!()`
13  --> $DIR/issue-65122-mac-invoc-in-mut-patterns.rs:13:17
14   |
15LL |         let mut $eval = ();
16   |                 ^^^^^ expected identifier
17...
18LL |     mac2! { does_not_exist!() }
19   |     --------------------------- in this macro invocation
20
21error: `mut` must be followed by a named binding
22  --> $DIR/issue-65122-mac-invoc-in-mut-patterns.rs:13:13
23   |
24LL |         let mut $eval = ();
25   |             ^^^ help: remove the `mut` prefix: `does_not_exist!()`
26...
27LL |     mac2! { does_not_exist!() }
28   |     --------------------------- in this macro invocation
29   |
30   = note: `mut` may be followed by `variable` and `variable @ pattern`
31
32error: cannot find macro `does_not_exist` in this scope
33  --> $DIR/issue-65122-mac-invoc-in-mut-patterns.rs:20:13
34   |
35LL |     mac1! { does_not_exist!() }
36   |             ^^^^^^^^^^^^^^
37
38error: cannot find macro `does_not_exist` in this scope
39  --> $DIR/issue-65122-mac-invoc-in-mut-patterns.rs:22:13
40   |
41LL |     mac2! { does_not_exist!() }
42   |             ^^^^^^^^^^^^^^
43
44error: aborting due to 5 previous errors
45