]> git.lizzy.rs Git - rust.git/blob - tests/target/issue-2554.rs
Add regression test
[rust.git] / tests / target / issue-2554.rs
1 // #2554
2 // Do not add the beginning vert to the first match arm's pattern.
3
4 fn main() {
5     match foo(|_| {
6         bar(|_| {
7             //
8         })
9     }) {
10         Ok(()) => (),
11         Err(_) => (),
12     }
13 }