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