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

12 lines
170 B
Rust
Raw Normal View History

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