]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/recover-missing-semi.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / parser / recover-missing-semi.stderr
1 error: expected `;`, found `keyword `let``
2   --> $DIR/recover-missing-semi.rs:2:22
3    |
4 LL |     let _: usize = ()
5    |                      ^ help: add `;` here
6 ...
7 LL |     let _ = 3;
8    |     --- unexpected token
9
10 error: expected `;`, found `keyword `return``
11   --> $DIR/recover-missing-semi.rs:9:22
12    |
13 LL |     let _: usize = ()
14    |                      ^ help: add `;` here
15 ...
16 LL |     return 3;
17    |     ------ unexpected token
18
19 error[E0308]: mismatched types
20   --> $DIR/recover-missing-semi.rs:2:20
21    |
22 LL |     let _: usize = ()
23    |                    ^^ expected usize, found ()
24
25 error[E0308]: mismatched types
26   --> $DIR/recover-missing-semi.rs:9:20
27    |
28 LL |     let _: usize = ()
29    |                    ^^ expected usize, found ()
30
31 error: aborting due to 4 previous errors
32
33 For more information about this error, try `rustc --explain E0308`.