diff options
| author | Michael Goulet <michael@errs.io> | 2023-12-29 19:26:19 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-12-29 19:59:58 +0000 |
| commit | 7eeaaa2dc02644e00079df9da45b980e46451c1e (patch) | |
| tree | b56b1bb89411f31bd4c1801880f005fe6d886591 /tests/ui/coroutine | |
| parent | 71dacdfa0f23b160a18ce118c83a466c359e6539 (diff) | |
| download | rust-7eeaaa2dc02644e00079df9da45b980e46451c1e.tar.gz rust-7eeaaa2dc02644e00079df9da45b980e46451c1e.zip | |
Compute yield and return types outside of check_fn
Diffstat (limited to 'tests/ui/coroutine')
| -rw-r--r-- | tests/ui/coroutine/gen_block.e2024.stderr | 4 | ||||
| -rw-r--r-- | tests/ui/coroutine/sized-yield.stderr | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/coroutine/gen_block.e2024.stderr b/tests/ui/coroutine/gen_block.e2024.stderr index f250e2f79c7..e32f80dafa0 100644 --- a/tests/ui/coroutine/gen_block.e2024.stderr +++ b/tests/ui/coroutine/gen_block.e2024.stderr @@ -8,10 +8,10 @@ LL | let _ = || yield true; = help: add `#![feature(coroutines)]` to the crate attributes to enable error[E0282]: type annotations needed - --> $DIR/gen_block.rs:6:17 + --> $DIR/gen_block.rs:6:13 | LL | let x = gen {}; - | ^^ cannot infer type + | ^^^^^^ cannot infer type error: aborting due to 2 previous errors diff --git a/tests/ui/coroutine/sized-yield.stderr b/tests/ui/coroutine/sized-yield.stderr index 40663ac12de..bbecaffa95a 100644 --- a/tests/ui/coroutine/sized-yield.stderr +++ b/tests/ui/coroutine/sized-yield.stderr @@ -1,8 +1,8 @@ error[E0277]: the size for values of type `str` cannot be known at compilation time - --> $DIR/sized-yield.rs:8:27 + --> $DIR/sized-yield.rs:8:19 | LL | let mut gen = move || { - | ___________________________^ + | ___________________^ LL | | LL | | yield s[..]; LL | | }; |
