@@ -8,7 +8,7 @@ LL | yield true;
8
8
= help: add `#![feature(coroutines)]` to the crate attributes to enable
9
9
10
10
error[E0658]: yield syntax is experimental
11
- --> $DIR/feature-gate-coroutines.rs:8 :16
11
+ --> $DIR/feature-gate-coroutines.rs:9 :16
12
12
|
13
13
LL | let _ = || yield true;
14
14
| ^^^^^^^^^^
@@ -17,7 +17,7 @@ LL | let _ = || yield true;
17
17
= help: add `#![feature(coroutines)]` to the crate attributes to enable
18
18
19
19
error[E0658]: yield syntax is experimental
20
- --> $DIR/feature-gate-coroutines.rs:14 :5
20
+ --> $DIR/feature-gate-coroutines.rs:16 :5
21
21
|
22
22
LL | yield;
23
23
| ^^^^^
@@ -26,21 +26,41 @@ LL | yield;
26
26
= help: add `#![feature(coroutines)]` to the crate attributes to enable
27
27
28
28
error[E0658]: yield syntax is experimental
29
- --> $DIR/feature-gate-coroutines.rs:15 :5
29
+ --> $DIR/feature-gate-coroutines.rs:17 :5
30
30
|
31
31
LL | yield 0;
32
32
| ^^^^^^^
33
33
|
34
34
= note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
35
35
= help: add `#![feature(coroutines)]` to the crate attributes to enable
36
36
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
+
37
57
error[E0627]: yield expression outside of coroutine literal
38
58
--> $DIR/feature-gate-coroutines.rs:5:5
39
59
|
40
60
LL | yield true;
41
61
| ^^^^^^^^^^
42
62
43
- error: aborting due to 5 previous errors
63
+ error: aborting due to 7 previous errors
44
64
45
65
Some errors have detailed explanations: E0627, E0658.
46
66
For more information about an error, try `rustc --explain E0627`.
0 commit comments