mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 00:43:50 +00:00
13 lines
208 B
Rust
13 lines
208 B
Rust
//@ known-bug: #120421
|
|
//@ compile-flags: -Zlint-mir
|
|
|
|
#![feature(never_patterns)]
|
|
|
|
enum Void {}
|
|
|
|
fn main() {
|
|
let res_void: Result<bool, Void> = Ok(true);
|
|
|
|
for (Ok(mut _x) | Err(!)) in [res_void] {}
|
|
}
|