rust/tests/ui/parser/issue-68987-unmatch-issue-1.rs

13 lines
248 B
Rust
Raw Normal View History

2023-01-25 20:52:57 -06:00
// This file has unexpected closing delimiter,
fn func(o: Option<u32>) {
match o {
Some(_x) => {} // Extra '}'
let _ = if true {};
}
None => {}
}
} //~ ERROR unexpected closing delimiter
fn main() {}