@@ -18,16 +18,6 @@ LL | let _ = #[coroutine] || {};
18
18
= help: add `#![feature(coroutines)]` to the crate attributes to enable
19
19
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
20
20
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
-
31
21
error: `yield` can only be used in `#[coroutine]` closures, or `gen` blocks
32
22
--> $DIR/gen_block.rs:16:16
33
23
|
@@ -39,23 +29,13 @@ help: use `#[coroutine]` to make this closure a coroutine
39
29
LL | let _ = #[coroutine] || yield true;
40
30
| ++++++++++++
41
31
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
-
52
32
error[E0282]: type annotations needed
53
33
--> $DIR/gen_block.rs:7:13
54
34
|
55
35
LL | let x = gen {};
56
36
| ^^^^^^ cannot infer type
57
37
58
- error: aborting due to 6 previous errors
38
+ error: aborting due to 4 previous errors
59
39
60
40
Some errors have detailed explanations: E0282, E0658.
61
41
For more information about an error, try `rustc --explain E0282`.
0 commit comments