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