You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: chained comparison operators require parentheses
--> src/main.rs:3:13
|
3 | Some<7>
| _____________^
4 | | };
| |_____^
|
= help: use `::<...>` instead of `<...>` if you meant to specify type arguments
error: expected expression, found `}`
--> src/main.rs:4:5
|
4 | };
| ^
error[E0308]: mismatched types
--> src/main.rs:2:20
|
2 | let x: usize = {
| ____________________^
3 | | Some<7>
4 | | };
| |_____^ expected usize, found ()
|
= note: expected type `usize`
found type `()`
error: aborting due to 3 previous errors
The first two are reasonable, but the third one should probably either be silenced for blocks that failed parsing, or at the very least made shorter with a message along the lines of:
error[E0XXX]: unknown type due to parse error
--> src/main.rs:2:20
|
2 | let x: usize = {
| ____________________^
3 | | Some<7>
4 | | };
| |_____^ expected usize, found unknown type due to parse error
The text was updated successfully, but these errors were encountered:
outputs the following errors:
The first two are reasonable, but the third one should probably either be silenced for blocks that failed parsing, or at the very least made shorter with a message along the lines of:
The text was updated successfully, but these errors were encountered: