summaryrefslogtreecommitdiffstats
path: root/tests/ui/generator/drop-tracking-yielding-in-match-guards.rs
blob: 92e0136d51b15596d3c1b1bc8c3166bec9f5be00 (plain)
1
2
3
4
5
6
7
8
9
10
11
// build-pass
// edition:2018

#![feature(generators)]

fn main() {
    let _ = static |x: u8| match x {
        y if { yield } == y + 1 => (),
        _ => (),
    };
}