aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/yield_in_async.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/yield_in_async.stderr')
-rw-r--r--tests/ui/yield_in_async.stderr23
1 files changed, 5 insertions, 18 deletions
diff --git a/tests/ui/yield_in_async.stderr b/tests/ui/yield_in_async.stderr
index 11d2ca1..4322758 100644
--- a/tests/ui/yield_in_async.stderr
+++ b/tests/ui/yield_in_async.stderr
@@ -12,21 +12,8 @@ error[E0727]: `async` generators are not yet supported
6 | yield 123;
| ^^^^^^^^^
-error[E0271]: type mismatch resolving `<[static generator@$DIR/src/lib.rs:201:9: 201:67] as Generator<ResumeTy>>::Yield == ()`
- --> tests/ui/yield_in_async.rs:4:5
- |
-4 | / stream! {
-5 | | let f = async {
-6 | | yield 123;
-7 | | };
-8 | |
-9 | | let v = f.await;
-10 | | };
- | |_____^ expected `()`, found integer
- |
-note: required by a bound in `from_generator`
- --> $RUST/core/src/future/mod.rs
- |
- | T: Generator<ResumeTy, Yield = ()>,
- | ^^^^^^^^^^ required by this bound in `from_generator`
- = note: this error originates in the macro `stream` (in Nightly builds, run with -Z macro-backtrace for more info)
+error[E0308]: mismatched types
+ --> tests/ui/yield_in_async.rs:6:19
+ |
+6 | yield 123;
+ | ^^^ expected `()`, found integer