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
fnfoo(x:i8) -> i32{//match x {1 => {return1;}
_ => {return0;}}}
I expected to see this happen: Compiles without error.
Instead, this happened:
bug.rs:3:11: error: expecting ‘}’ but ‘=>’ found
3 | match x {
| ^
bug.rs:3:11: error: error may be from having an expression (as opposed to statement) in the body of the function but not last
bug.rs:6:1: error: unrecognised token ‘}’ for start of item
6 | }
| ^
bug.rs:6:1: error: failed to parse item in crate
Compiles fine without the empty comment line.
Meta
What version of Rust GCC were you using, git sha if possible: e6d32d5
The text was updated successfully, but these errors were encountered:
I tried this code:
I expected to see this happen: Compiles without error.
Instead, this happened:
Compiles fine without the empty comment line.
Meta
The text was updated successfully, but these errors were encountered: