summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-101065.rs
blob: 2715f1027082fd82b368c1ada9ebd11f2ee85047 (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(()) //~ERROR E0308
    };
}