@@ -8,7 +8,7 @@ LL | yield true;
88 = help: add `#![feature(coroutines)]` to the crate attributes to enable
99
1010error[E0658]: yield syntax is experimental
11- --> $DIR/feature-gate-coroutines.rs:8 :16
11+ --> $DIR/feature-gate-coroutines.rs:9 :16
1212 |
1313LL | let _ = || yield true;
1414 | ^^^^^^^^^^
@@ -17,7 +17,7 @@ LL | let _ = || yield true;
1717 = help: add `#![feature(coroutines)]` to the crate attributes to enable
1818
1919error[E0658]: yield syntax is experimental
20- --> $DIR/feature-gate-coroutines.rs:14 :5
20+ --> $DIR/feature-gate-coroutines.rs:16 :5
2121 |
2222LL | yield;
2323 | ^^^^^
@@ -26,21 +26,41 @@ LL | yield;
2626 = help: add `#![feature(coroutines)]` to the crate attributes to enable
2727
2828error[E0658]: yield syntax is experimental
29- --> $DIR/feature-gate-coroutines.rs:15 :5
29+ --> $DIR/feature-gate-coroutines.rs:17 :5
3030 |
3131LL | yield 0;
3232 | ^^^^^^^
3333 |
3434 = note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
3535 = help: add `#![feature(coroutines)]` to the crate attributes to enable
3636
37+ error[E0658]: yield syntax is experimental
38+ --> $DIR/feature-gate-coroutines.rs:5:5
39+ |
40+ LL | yield true;
41+ | ^^^^^^^^^^
42+ |
43+ = note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
44+ = help: add `#![feature(coroutines)]` to the crate attributes to enable
45+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
46+
47+ error[E0658]: yield syntax is experimental
48+ --> $DIR/feature-gate-coroutines.rs:9:16
49+ |
50+ LL | let _ = || yield true;
51+ | ^^^^^^^^^^
52+ |
53+ = note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
54+ = help: add `#![feature(coroutines)]` to the crate attributes to enable
55+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
56+
3757error[E0627]: yield expression outside of coroutine literal
3858 --> $DIR/feature-gate-coroutines.rs:5:5
3959 |
4060LL | yield true;
4161 | ^^^^^^^^^^
4262
43- error: aborting due to 5 previous errors
63+ error: aborting due to 7 previous errors
4464
4565Some errors have detailed explanations: E0627, E0658.
4666For more information about an error, try `rustc --explain E0627`.
0 commit comments