@@ -18,16 +18,6 @@ LL | let _ = #[coroutine] || {};
1818 = help: add `#![feature(coroutines)]` to the crate attributes to enable
1919 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2020
21- error[E0658]: yield syntax is experimental
22- --> $DIR/gen_block.rs:16:16
23- |
24- LL | let _ = || yield true;
25- | ^^^^^^^^^^
26- |
27- = note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
28- = help: add `#![feature(coroutines)]` to the crate attributes to enable
29- = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
30-
3121error: `yield` can only be used in `#[coroutine]` closures, or `gen` blocks
3222 --> $DIR/gen_block.rs:16:16
3323 |
@@ -39,23 +29,13 @@ help: use `#[coroutine]` to make this closure a coroutine
3929LL | let _ = #[coroutine] || yield true;
4030 | ++++++++++++
4131
42- error[E0658]: yield syntax is experimental
43- --> $DIR/gen_block.rs:20:29
44- |
45- LL | let _ = #[coroutine] || yield true;
46- | ^^^^^^^^^^
47- |
48- = note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
49- = help: add `#![feature(coroutines)]` to the crate attributes to enable
50- = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
51-
5232error[E0282]: type annotations needed
5333 --> $DIR/gen_block.rs:7:13
5434 |
5535LL | let x = gen {};
5636 | ^^^^^^ cannot infer type
5737
58- error: aborting due to 6 previous errors
38+ error: aborting due to 4 previous errors
5939
6040Some errors have detailed explanations: E0282, E0658.
6141For more information about an error, try `rustc --explain E0282`.
0 commit comments