rust/tests/ui/generator/drop-tracking-yielding-in-match-guards.rs
Camille GILLOT 211d2ed07b Bless tests.
2023-09-23 13:47:30 +00:00

12 lines
170 B
Rust

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