2019-10-20 16:35:46 -05:00
|
|
|
error: expected `;`, found `keyword `let``
|
|
|
|
--> $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
|
|
|
|
2019-10-20 16:35:46 -05:00
|
|
|
error: expected `;`, found `keyword `return``
|
|
|
|
--> $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-15 11:37:01 -06:00
|
|
|
| ^^ expected `usize`, found `()`
|
2019-04-10 20:07:52 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/recover-missing-semi.rs:9:20
|
|
|
|
|
|
|
|
|
LL | let _: usize = ()
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^ expected `usize`, found `()`
|
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`.
|