11error[E0658]: yield syntax is experimental
2- --> $DIR /yield_in_async.rs:6:13
2+ --> tests/ui /yield_in_async.rs:6:13
33 |
446 | yield 123;
55 | ^^^^^^^^^
66 |
77 = note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
88
99error[E0727]: `async` generators are not yet supported
10- --> $DIR /yield_in_async.rs:6:13
10+ --> tests/ui /yield_in_async.rs:6:13
1111 |
12126 | yield 123;
1313 | ^^^^^^^^^
1414
1515error[E0271]: type mismatch resolving `<[static generator@$DIR/src/lib.rs:201:9: 201:67] as Generator<ResumeTy>>::Yield == ()`
16- --> $DIR /yield_in_async.rs:4:5
16+ --> tests/ui /yield_in_async.rs:4:5
1717 |
18184 | / stream! {
19195 | | let f = async {
@@ -22,54 +22,11 @@ error[E0271]: type mismatch resolving `<[static generator@$DIR/src/lib.rs:201:9:
22228 | |
23239 | | let v = f.await;
242410 | | };
25- | |______ ^ expected `()`, found integer
25+ | |_____ ^ expected `()`, found integer
2626 |
27- = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
28-
29- error[E0698]: type inside `async` block must be known in this context
30- --> $DIR/yield_in_async.rs:6:19
31- |
32- 6 | yield 123;
33- | ^^^ cannot infer type for type `{integer}`
34- |
35- note: the type is part of the `async` block because of this `yield`
36- --> $DIR/yield_in_async.rs:6:13
37- |
38- 6 | yield 123;
39- | ^^^^^^^^^
40-
41- error[E0698]: type inside `async` block must be known in this context
42- --> $DIR/yield_in_async.rs:5:13
43- |
44- 5 | let f = async {
45- | ^ cannot infer type for type `{integer}`
46- |
47- note: the type is part of the `async` block because of this `await`
48- --> $DIR/yield_in_async.rs:9:17
49- |
50- 9 | let v = f.await;
51- | ^^^^^^^
52-
53- error[E0698]: type inside `async` block must be known in this context
54- --> $DIR/yield_in_async.rs:9:17
55- |
56- 9 | let v = f.await;
57- | ^ cannot infer type for type `{integer}`
58- |
59- note: the type is part of the `async` block because of this `await`
60- --> $DIR/yield_in_async.rs:9:17
61- |
62- 9 | let v = f.await;
63- | ^^^^^^^
64-
65- error[E0698]: type inside `async` block must be known in this context
66- --> $DIR/yield_in_async.rs:9:17
67- |
68- 9 | let v = f.await;
69- | ^^^^^^^ cannot infer type for type `{integer}`
70- |
71- note: the type is part of the `async` block because of this `await`
72- --> $DIR/yield_in_async.rs:9:17
73- |
74- 9 | let v = f.await;
75- | ^^^^^^^
27+ note: required by a bound in `from_generator`
28+ --> $RUST/core/src/future/mod.rs
29+ |
30+ | T: Generator<ResumeTy, Yield = ()>,
31+ | ^^^^^^^^^^ required by this bound in `from_generator`
32+ = note: this error originates in the macro `stream` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments