fork/rust

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

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

master
804 B39 linesraw
1error: expected expression, found keyword `mut`
2  --> $DIR/issue-103529.rs:5:6
3   |
4LL | m! { mut x }
5   |      ^^^ expected expression
6
7error: expected a statement
8  --> $DIR/issue-103529.rs:5:10
9   |
10LL |     ($s:stmt) => {}
11   |      ------- while parsing argument for this `stmt` macro fragment
12...
13LL | m! { mut x }
14   |          ^
15
16error: invalid variable declaration
17  --> $DIR/issue-103529.rs:8:6
18   |
19LL | m! { auto x }
20   |      ^^^^
21   |
22help: write `let` instead of `auto` to introduce a new variable
23   |
24LL | m! { let x }
25   |      ~~~
26
27error: invalid variable declaration
28  --> $DIR/issue-103529.rs:10:6
29   |
30LL | m! { var x }
31   |      ^^^
32   |
33help: write `let` instead of `var` to introduce a new variable
34   |
35LL | m! { let x }
36   |      ~~~
37
38error: aborting due to 4 previous errors
39