]> git.lizzy.rs Git - rust.git/blob - tests/ui/generator/drop-tracking-yielding-in-match-guards.rs
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / generator / drop-tracking-yielding-in-match-guards.rs
1 // build-pass
2 // edition:2018
3 // compile-flags: -Zdrop-tracking
4
5 #![feature(generators)]
6
7 fn main() {
8     let _ = static |x: u8| match x {
9         y if { yield } == y + 1 => (),
10         _ => (),
11     };
12 }