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