1error[E0658]: yield syntax is experimental 2 --> $DIR/yield_in_async.rs:6:13 3 | 46 | yield 123; 5 | ^^^^^^^^^ 6 | 7 = note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information 8 9error[E0727]: `async` generators are not yet supported 10 --> $DIR/yield_in_async.rs:6:13 11 | 126 | yield 123; 13 | ^^^^^^^^^ 14 15error[E0271]: type mismatch resolving `<[static generator@$DIR/tests/ui/yield_in_async.rs:4:5: 10:7 _] as std::ops::Generator<std::future::ResumeTy>>::Yield == ()` 16 --> $DIR/yield_in_async.rs:4:5 17 | 184 | / stream! { 195 | | let f = async { 206 | | yield 123; 217 | | }; 228 | | 239 | | let v = f.await; 2410 | | }; 25 | |______^ expected `()`, found integer 26 27error[E0698]: type inside `async` block must be known in this context 28 --> $DIR/yield_in_async.rs:6:19 29 | 306 | yield 123; 31 | ^^^ cannot infer type for type `{integer}` 32 | 33note: the type is part of the `async` block because of this `yield` 34 --> $DIR/yield_in_async.rs:6:13 35 | 366 | yield 123; 37 | ^^^^^^^^^ 38 39error[E0698]: type inside `async` block must be known in this context 40 --> $DIR/yield_in_async.rs:5:13 41 | 425 | let f = async { 43 | ^ cannot infer type for type `{integer}` 44 | 45note: the type is part of the `async` block because of this `await` 46 --> $DIR/yield_in_async.rs:9:17 47 | 489 | let v = f.await; 49 | ^^^^^^^ 50 51error[E0698]: type inside `async` block must be known in this context 52 --> $DIR/yield_in_async.rs:9:17 53 | 549 | let v = f.await; 55 | ^ cannot infer type for type `{integer}` 56 | 57note: the type is part of the `async` block because of this `await` 58 --> $DIR/yield_in_async.rs:9:17 59 | 609 | let v = f.await; 61 | ^^^^^^^ 62 63error[E0698]: type inside `async` block must be known in this context 64 --> $DIR/yield_in_async.rs:9:17 65 | 669 | let v = f.await; 67 | ^^^^^^^ cannot infer type for type `{integer}` 68 | 69note: the type is part of the `async` block because of this `await` 70 --> $DIR/yield_in_async.rs:9:17 71 | 729 | let v = f.await; 73 | ^^^^^^^ 74 75Some errors have detailed explanations: E0271, E0658, E0698, E0727. 76For more information about an error, try `rustc --explain E0271`. 77