Skip to content
Snippets Groups Projects
Select Git revision
  • 6573a9cbfa13e7c5f25bed4a6059702a5aab3b63
  • master default protected
2 results

README.md

Blame
  • generator_niche.rs 305 B
    // 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(_) => (),
        }
    }