rust/tests/ui/coroutine/drop-tracking-yielding-in-m...

12 lines
207 B
Rust

//@ build-pass
//@ edition:2018
#![feature(coroutines, stmt_expr_attributes)]
fn main() {
let _ = #[coroutine] static |x: u8| match x {
y if { yield } == y + 1 => (),
_ => (),
};
}