mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
12 lines
170 B
Rust
12 lines
170 B
Rust
// build-pass
|
|
// edition:2018
|
|
|
|
#![feature(generators)]
|
|
|
|
fn main() {
|
|
let _ = static |x: u8| match x {
|
|
y if { yield } == y + 1 => (),
|
|
_ => (),
|
|
};
|
|
}
|