2022-05-10 17:58:18 -07:00
|
|
|
// build-pass
|
|
|
|
// edition:2018
|
2022-10-01 12:19:31 +02:00
|
|
|
// revisions: no_drop_tracking drop_tracking drop_tracking_mir
|
|
|
|
// [drop_tracking] compile-flags: -Zdrop-tracking
|
|
|
|
// [drop_tracking_mir] compile-flags: -Zdrop-tracking-mir
|
2022-05-10 17:58:18 -07:00
|
|
|
|
2022-05-13 13:38:36 -07:00
|
|
|
#![feature(generators)]
|
2022-05-10 17:58:18 -07:00
|
|
|
|
|
|
|
fn main() {
|
2022-05-17 15:04:05 -07:00
|
|
|
let _ = static |x: u8| match x {
|
2022-05-13 13:38:36 -07:00
|
|
|
y if { yield } == y + 1 => (),
|
|
|
|
_ => (),
|
|
|
|
};
|
2022-05-10 17:58:18 -07:00
|
|
|
}
|