Skip to content
Snippets Groups Projects
Select Git revision
  • a59c0278c5ac98698b5cefa272fd9ebcd49ad76c
  • master default protected
  • home_exam
  • wip
4 results

HOME_EXAM.md

Blame
  • Forked from Per Lindgren / D7050E
    Source project has a limited visibility.
    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(_) => (),
        }
    }