]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generator/drop-tracking-yielding-in-match-guards.rs
Auto merge of #102655 - joboet:windows_tls_opt, r=ChrisDenton
[rust.git] / src / test / 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 }