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

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

12 lines
172 B
Rust
Raw Normal View History

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