rust/tests/target/issue-2554.rs
Seiichi Uchida 1e1d9d4afe Do not add the beginning vert to the match arm
Pass the span after the match's condition expression.
Closes #2554.
2018-03-23 19:59:38 +09:00

13 lines
214 B
Rust

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