Skip to content
Snippets Groups Projects
Commit 7bf4dff1 authored by David Renshaw's avatar David Renshaw
Browse files

add generator niche test

parent f4f20b36
Branches
Tags
No related merge requests found
// https://github.com/rust-lang/rust/issues/47253
#![feature(generators)]
pub struct Foo {
_a: bool,
_b: Option<String>,
}
fn main() {
let g = || {
let _f = Foo { _a: true, _b: None };
yield ();
};
match Some(g) {
None => (),
Some(_) => (),
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment