mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
13 lines
204 B
Rust
13 lines
204 B
Rust
// build-pass
|
|
// edition:2018
|
|
// compile-flags: -Zdrop-tracking
|
|
|
|
#![feature(generators)]
|
|
|
|
fn main() {
|
|
let _ = static |x: u8| match x {
|
|
y if { yield } == y + 1 => (),
|
|
_ => (),
|
|
};
|
|
}
|