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