2020-05-15 22:51:12 -05:00
|
|
|
error: expected `;`, found keyword `let`
|
2019-10-20 16:35:46 -05:00
|
|
|
--> $DIR/recover-missing-semi.rs:2:22
|
2019-04-10 20:07:52 -05:00
|
|
|
|
|
|
|
|
LL | let _: usize = ()
|
2019-10-20 16:35:46 -05:00
|
|
|
| ^ help: add `;` here
|
|
|
|
...
|
2019-04-10 20:07:52 -05:00
|
|
|
LL | let _ = 3;
|
2019-10-20 16:35:46 -05:00
|
|
|
| --- unexpected token
|
2019-04-10 20:07:52 -05:00
|
|
|
|
2020-05-15 22:51:12 -05:00
|
|
|
error: expected `;`, found keyword `return`
|
2019-10-20 16:35:46 -05:00
|
|
|
--> $DIR/recover-missing-semi.rs:9:22
|
2019-04-10 20:07:52 -05:00
|
|
|
|
|
|
|
|
LL | let _: usize = ()
|
2019-10-20 16:35:46 -05:00
|
|
|
| ^ help: add `;` here
|
|
|
|
...
|
2019-04-10 20:07:52 -05:00
|
|
|
LL | return 3;
|
2019-10-20 16:35:46 -05:00
|
|
|
| ------ unexpected token
|
2019-04-10 20:07:52 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/recover-missing-semi.rs:2:20
|
|
|
|
|
|
|
|
|
LL | let _: usize = ()
|
2019-11-18 23:00:24 -06:00
|
|
|
| ----- ^^ expected `usize`, found `()`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-04-10 20:07:52 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/recover-missing-semi.rs:9:20
|
|
|
|
|
|
|
|
|
LL | let _: usize = ()
|
2019-11-18 23:00:24 -06:00
|
|
|
| ----- ^^ expected `usize`, found `()`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-04-10 20:07:52 -05:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|