mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-22 12:43:36 +00:00
1e1d9d4afe
Pass the span after the match's condition expression. Closes #2554.
14 lines
214 B
Rust
14 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(_) => (),
|
|
}
|
|
}
|