]> git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/issues/issue-65257-invalid-var-decl-recovery.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / parser / issues / issue-65257-invalid-var-decl-recovery.stderr
1 error: invalid variable declaration
2 --> $DIR/issue-65257-invalid-var-decl-recovery.rs:2:5
3 |
4 LL | auto n = 0;
5 | ^^^^
6 |
7 help: write `let` instead of `auto` to introduce a new variable
8 |
9 LL | let n = 0;
10 | ~~~
11
12 error: invalid variable declaration
13 --> $DIR/issue-65257-invalid-var-decl-recovery.rs:4:5
14 |
15 LL | auto m;
16 | ^^^^
17 |
18 help: write `let` instead of `auto` to introduce a new variable
19 |
20 LL | let m;
21 | ~~~
22
23 error: invalid variable declaration
24 --> $DIR/issue-65257-invalid-var-decl-recovery.rs:8:5
25 |
26 LL | var n = 0;
27 | ^^^
28 |
29 help: write `let` instead of `var` to introduce a new variable
30 |
31 LL | let n = 0;
32 | ~~~
33
34 error: invalid variable declaration
35 --> $DIR/issue-65257-invalid-var-decl-recovery.rs:10:5
36 |
37 LL | var m;
38 | ^^^
39 |
40 help: write `let` instead of `var` to introduce a new variable
41 |
42 LL | let m;
43 | ~~~
44
45 error: invalid variable declaration
46 --> $DIR/issue-65257-invalid-var-decl-recovery.rs:14:5
47 |
48 LL | mut n = 0;
49 | ^^^ help: missing keyword: `let mut`
50
51 error: invalid variable declaration
52 --> $DIR/issue-65257-invalid-var-decl-recovery.rs:16:5
53 |
54 LL | mut var;
55 | ^^^ help: missing keyword: `let mut`
56
57 error[E0308]: mismatched types
58 --> $DIR/issue-65257-invalid-var-decl-recovery.rs:20:33
59 |
60 LL | let _recovery_witness: () = 0;
61 | -- ^ expected `()`, found integer
62 | |
63 | expected due to this
64
65 error: aborting due to 7 previous errors
66
67 For more information about this error, try `rustc --explain E0308`.