fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0658]: yield syntax is experimental 2 --> $DIR/feature-gate-generators.rs:2:5 3 | 4LL | yield true; 5 | ^^^^^^^^^^ 6 | 7 = note: for more information, see https://github.com/rust-lang/rust/issues/43122 8 = help: add `#![feature(generators)]` to the crate attributes to enable 9 10error[E0658]: yield syntax is experimental 11 --> $DIR/feature-gate-generators.rs:8:5 12 | 13LL | yield; 14 | ^^^^^ 15 | 16 = note: for more information, see https://github.com/rust-lang/rust/issues/43122 17 = help: add `#![feature(generators)]` to the crate attributes to enable 18 19error[E0658]: yield syntax is experimental 20 --> $DIR/feature-gate-generators.rs:9:5 21 | 22LL | yield 0; 23 | ^^^^^^^ 24 | 25 = note: for more information, see https://github.com/rust-lang/rust/issues/43122 26 = help: add `#![feature(generators)]` to the crate attributes to enable 27 28error[E0627]: yield statement outside of generator literal 29 --> $DIR/feature-gate-generators.rs:2:5 30 | 31LL | yield true; 32 | ^^^^^^^^^^ 33 34error: aborting due to 4 previous errors 35 36For more information about this error, try `rustc --explain E0658`.