]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/recover-missing-semi.stderr
Rollup merge of #59896 - estebank:dedup-spans, r=davidtwco
[rust.git] / src / test / ui / parser / recover-missing-semi.stderr
1 error: expected one of `.`, `;`, `?`, or an operator, found `let`
2   --> $DIR/recover-missing-semi.rs:4:5
3    |
4 LL |     let _: usize = ()
5    |                      - help: a semicolon may be missing here
6 LL |
7 LL |     let _ = 3;
8    |     ^^^
9
10 error: expected one of `.`, `;`, `?`, or an operator, found `return`
11   --> $DIR/recover-missing-semi.rs:11:5
12    |
13 LL |     let _: usize = ()
14    |                      - help: a semicolon may be missing here
15 LL |
16 LL |     return 3;
17    |     ^^^^^^
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    = note: expected type `usize`
26               found type `()`
27
28 error[E0308]: mismatched types
29   --> $DIR/recover-missing-semi.rs:9:20
30    |
31 LL |     let _: usize = ()
32    |                    ^^ expected usize, found ()
33    |
34    = note: expected type `usize`
35               found type `()`
36
37 error: aborting due to 4 previous errors
38
39 For more information about this error, try `rustc --explain E0308`.