fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1002 B32 linesraw
1error[E0070]: invalid left-hand side of assignment
2  --> $DIR/issue-26093.rs:3:16
3   |
4LL |         $thing = 42;
5   |                ^
6...
7LL |     not_a_place!(99);
8   |     -----------------
9   |     |            |
10   |     |            cannot assign to this expression
11   |     in this macro invocation
12   |
13   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
14
15error[E0067]: invalid left-hand side of assignment
16  --> $DIR/issue-26093.rs:5:16
17   |
18LL |         $thing += 42;
19   |                ^^
20...
21LL |     not_a_place!(99);
22   |     -----------------
23   |     |            |
24   |     |            cannot assign to this expression
25   |     in this macro invocation
26   |
27   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
28
29error: aborting due to 2 previous errors
30
31Some errors have detailed explanations: E0067, E0070.
32For more information about an error, try `rustc --explain E0067`.