fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
979 B37 linesraw
1error: expected `;`, found `keyword `let``
2  --> $DIR/recover-missing-semi.rs:2:22
3   |
4LL |     let _: usize = ()
5   |                      ^ help: add `;` here
6...
7LL |     let _ = 3;
8   |     --- unexpected token
9
10error: expected `;`, found `keyword `return``
11  --> $DIR/recover-missing-semi.rs:9:22
12   |
13LL |     let _: usize = ()
14   |                      ^ help: add `;` here
15...
16LL |     return 3;
17   |     ------ unexpected token
18
19error[E0308]: mismatched types
20  --> $DIR/recover-missing-semi.rs:2:20
21   |
22LL |     let _: usize = ()
23   |            -----   ^^ expected `usize`, found `()`
24   |            |
25   |            expected due to this
26
27error[E0308]: mismatched types
28  --> $DIR/recover-missing-semi.rs:9:20
29   |
30LL |     let _: usize = ()
31   |            -----   ^^ expected `usize`, found `()`
32   |            |
33   |            expected due to this
34
35error: aborting due to 4 previous errors
36
37For more information about this error, try `rustc --explain E0308`.