blob: cbc291701cbc9d9a67ea18f269b2b89b54eaaa88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// build-pass
// edition:2018
// revisions: no_drop_tracking drop_tracking drop_tracking_mir
// [drop_tracking] compile-flags: -Zdrop-tracking
// [drop_tracking_mir] compile-flags: -Zdrop-tracking-mir
#![feature(generators)]
fn main() {
let _ = static |x: u8| match x {
y if { yield } == y + 1 => (),
_ => (),
};
}
|