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
When attempting to compile this code on the latest nightly, I get the given error message:
fnmain(){match3{2 => ()
_ => ()}}
error: expected one of `,`, `.`, `?`, `}`, or an operator, found `_`
--> src/main.rs:4:9
|
3 | 2 => ()
| ________________- starting here...
4 | | _ => ()
| | ...endi^gunexpected tokenone of `,`, `.`, `?`, `}`, or an operator here
error: aborting due to previous error
I should be getting an error message on that, but the formatting is being pretty severely garbled. For reference, this is the message I get on stable/beta:
error: expected one of `,`, `.`, `?`, `}`, or an operator, found `_`
--> src/main.rs:4:9
|
4 | _ => ()
| ^
error: aborting due to previous error
When attempting to compile this code on the latest nightly, I get the given error message:
I should be getting an error message on that, but the formatting is being pretty severely garbled. For reference, this is the message I get on stable/beta:
rustc version:
The text was updated successfully, but these errors were encountered: