-
Notifications
You must be signed in to change notification settings - Fork 627
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
84 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,14 @@ | ||
error[E0308]: mismatched types | ||
--> $DIR/nested.rs:10:19 | ||
error[E0727]: `async` generators are not yet supported | ||
--> $DIR/nested.rs:7:19 | ||
| | ||
10 | yield i * i; | ||
| ^^^^^ expected (), found integer | ||
| | ||
= note: expected type `()` | ||
found type `{integer}` | ||
|
||
error[E0698]: type inside generator must be known in this context | ||
--> $DIR/nested.rs:10:13 | ||
| | ||
10 | yield i * i; | ||
| ^^^^^^^^^^^ cannot infer type for `{integer}` | ||
| | ||
note: the type is part of the generator because of this `yield` | ||
--> $DIR/nested.rs:10:13 | ||
| | ||
10 | yield i * i; | ||
| ^^^^^^^^^^^ | ||
|
||
error[E0698]: type inside generator must be known in this context | ||
--> $DIR/nested.rs:5:1 | ||
| | ||
5 | #[async_stream] | ||
| ^^^^^^^^^^^^^^^ cannot infer type for `{integer}` | ||
| | ||
note: the type is part of the generator because of this `yield` | ||
--> $DIR/nested.rs:5:1 | ||
| | ||
5 | #[async_stream] | ||
| ^^^^^^^^^^^^^^^ | ||
7 | let _ = async { | ||
| ___________________^ | ||
8 | | #[for_await] | ||
9 | | for i in stream::iter(vec![1, 2]) { | ||
10 | | yield i * i; | ||
11 | | } | ||
12 | | }; | ||
| |_____^ | ||
|
||
error: aborting due to 3 previous errors | ||
error: aborting due to previous error | ||
|
||
Some errors have detailed explanations: E0308, E0698. | ||
For more information about an error, try `rustc --explain E0308`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters