rust/tests/ui/suggestions/issue-101065.fixed
2024-02-16 20:02:50 +00:00

15 lines
224 B
Rust

//@ 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
};
}