-
Notifications
You must be signed in to change notification settings - Fork 33
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
8 changed files
with
36 additions
and
75 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
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,5 +1,5 @@ | ||
error: expected expression | ||
--> $DIR/yield_bad_expr_in_macro.rs:8:33 | ||
--> tests/ui/yield_bad_expr_in_macro.rs:8:33 | ||
| | ||
8 | _ = work() => yield fn f() {}, | ||
| ^^ |
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,18 +1,20 @@ | ||
error[E0658]: yield syntax is experimental | ||
--> $DIR/yield_in_closure.rs:7:17 | ||
--> tests/ui/yield_in_closure.rs:7:17 | ||
| | ||
7 | yield v; | ||
| ^^^^^^^ | ||
| | ||
= note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information | ||
|
||
error[E0277]: expected a `FnOnce<(&str,)>` closure, found `[generator@$DIR/src/lib.rs:201:9: 201:67]` | ||
--> $DIR/yield_in_closure.rs:6:14 | ||
| | ||
6 | .and_then(|v| { | ||
| ^^^^^^^^ expected an `FnOnce<(&str,)>` closure, found `[generator@$DIR/src/lib.rs:201:9: 201:67]` | ||
| | ||
= help: the trait `FnOnce<(&str,)>` is not implemented for `[generator@$DIR/src/lib.rs:201:9: 201:67]` | ||
|
||
Some errors have detailed explanations: E0277, E0658. | ||
For more information about an error, try `rustc --explain E0277`. | ||
--> tests/ui/yield_in_closure.rs:6:14 | ||
| | ||
6 | .and_then(|v| { | ||
| ^^^^^^^^ expected an `FnOnce<(&str,)>` closure, found `[generator@$DIR/src/lib.rs:201:9: 201:67]` | ||
| | ||
= help: the trait `FnOnce<(&str,)>` is not implemented for `[generator@$DIR/src/lib.rs:201:9: 201:67]` | ||
note: required by a bound in `Result::<T, E>::and_then` | ||
--> $RUST/core/src/result.rs | ||
| | ||
| pub fn and_then<U, F: FnOnce(T) -> Result<U, E>>(self, op: F) -> Result<U, E> { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Result::<T, E>::and_then` |
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,16 +1,13 @@ | ||
error[E0658]: yield syntax is experimental | ||
--> $DIR/yield_in_nested_fn.rs:6:13 | ||
--> tests/ui/yield_in_nested_fn.rs:6:13 | ||
| | ||
6 | yield "hello"; | ||
| ^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information | ||
|
||
error[E0627]: yield expression outside of generator literal | ||
--> $DIR/yield_in_nested_fn.rs:6:13 | ||
--> tests/ui/yield_in_nested_fn.rs:6:13 | ||
| | ||
6 | yield "hello"; | ||
| ^^^^^^^^^^^^^ | ||
|
||
Some errors have detailed explanations: E0627, E0658. | ||
For more information about an error, try `rustc --explain E0627`. |