mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
15 lines
206 B
Rust
15 lines
206 B
Rust
// check-fail
|
|
// run-rustfix
|
|
|
|
enum FakeResult<T> {
|
|
Ok(T)
|
|
}
|
|
|
|
fn main() {
|
|
let _x = if true {
|
|
FakeResult::Ok(FakeResult::Ok(()))
|
|
} else {
|
|
FakeResult::Ok(()) //~ERROR E0308
|
|
};
|
|
}
|