rust/tests/ui/coroutine/drop-tracking-yielding-in-match-guards.rs

12 lines
172 B
Rust
Raw Normal View History

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