summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/nested-if-else.rs
blob: 9a54789ddcd6884c21aa6ead773598b1f0d67043 (plain)
1
2
3
4
5
6
7
8
9
10
11
fn issue1518() {
    Some(Object {
        field: if a {
            a_thing
        } else if b {
            b_thing
        } else {
            c_thing
        },
    })
}