]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/recover-missing-semi.stderr
Add 'compiler/rustc_codegen_cranelift/' from commit '793d26047f994e23415f8f6bb5686ff2...
[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    |            expected due to this
26
27 error[E0308]: mismatched types
28   --> $DIR/recover-missing-semi.rs:9:20
29    |
30 LL |     let _: usize = ()
31    |            -----   ^^ expected `usize`, found `()`
32    |            |
33    |            expected due to this
34
35 error: aborting due to 4 previous errors
36
37 For more information about this error, try `rustc --explain E0308`.