summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-103529.stderr
blob: 61e322afc770986faaed5e35b5423ef67913ac25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
error: expected expression, found keyword `mut`
  --> $DIR/issue-103529.rs:5:6
   |
LL | m! { mut x }
   |      ^^^ expected expression

error: expected a statement
  --> $DIR/issue-103529.rs:5:10
   |
LL |     ($s:stmt) => {}
   |      ------- while parsing argument for this `stmt` macro fragment
...
LL | m! { mut x }
   |          ^

error: invalid variable declaration
  --> $DIR/issue-103529.rs:8:6
   |
LL | m! { auto x }
   |      ^^^^
   |
help: write `let` instead of `auto` to introduce a new variable
   |
LL | m! { let x }
   |      ~~~

error: invalid variable declaration
  --> $DIR/issue-103529.rs:10:6
   |
LL | m! { var x }
   |      ^^^
   |
help: write `let` instead of `var` to introduce a new variable
   |
LL | m! { let x }
   |      ~~~

error: aborting due to 4 previous errors