fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
222 B14 linesraw
1// check-fail
2// run-rustfix
3
4enum FakeResult<T> {
5    Ok(T)
6}
7
8fn main() {
9    let _x = if true {
10        FakeResult::Ok(FakeResult::Ok(()))
11    } else {
12        FakeResult::Ok(FakeResult::Ok(())) //~ERROR E0308
13    };
14}