Closed
Description
At commit a5ab960. I would expect the following to work:
fn main() {
match -1 as u32 {
-1 as u32 => None,
val => Some(val),
};
}
But the compiler rejects it with the following error:
$ rustc t.rs
t.rs:3:12: 3:14 error: expected `=>` but found `as`
t.rs:3 -1 as u32 => None,
Metadata
Metadata
Assignees
Labels
No labels