rust/tests/ui/suggestions/issue-101065.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
206 B
Rust
Raw Normal View History

// check-fail
// run-rustfix
enum FakeResult<T> {
Ok(T)
}
fn main() {
let _x = if true {
FakeResult::Ok(FakeResult::Ok(()))
} else {
FakeResult::Ok(()) //~ERROR E0308
};
}