summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-2554.rs
blob: d5f0563a6f100978bf7b511b88315206c25cf91c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// #2554
// Do not add the beginning vert to the first match arm's pattern.

fn main() {
    match foo(|_| {
        bar(|_| {
            //
        })
    }) {
        Ok(()) => (),
        Err(_) => (),
    }
}