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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
204 B
Rust
Raw Normal View History

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