summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-101065.fixed
blob: 88c716cc86ce8977f7b40ecdd6dccbabcbb25887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// check-fail
// run-rustfix

enum FakeResult<T> {
    Ok(T)
}

fn main() {
    let _x = if true {
        FakeResult::Ok(FakeResult::Ok(()))
    } else {
        FakeResult::Ok(FakeResult::Ok(())) //~ERROR E0308
    };
}