rust/tests/target/issue-2554.rs

14 lines
214 B
Rust
Raw Normal View History

// #2554
// Do not add the beginning vert to the first match arm's pattern.
fn main() {
match foo(|_| {
bar(|_| {
//
})
}) {
Ok(()) => (),
Err(_) => (),
}
}