mirror of https://github.com/rust-lang/rust.git
12 lines
172 B
Rust
12 lines
172 B
Rust
|
//@ build-pass
|
||
|
//@ edition:2018
|
||
|
|
||
|
#![feature(coroutines)]
|
||
|
|
||
|
fn main() {
|
||
|
let _ = static |x: u8| match x {
|
||
|
y if { yield } == y + 1 => (),
|
||
|
_ => (),
|
||
|
};
|
||
|
}
|