Skip to content

Commit

Permalink
Update ui test output to Rust 1.65.0 (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Nov 28, 2022
1 parent 5a4df04 commit ac3fa6b
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions async-stream/tests/ui/yield_in_closure.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@ error[E0658]: yield syntax is experimental
= 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/tests/ui/yield_in_closure.rs:6:23: 6:26]`
--> tests/ui/yield_in_closure.rs:6:14
|
6 | .and_then(|v| {
| ^^^^^^^^ expected an `FnOnce<(&str,)>` closure, found `[generator@$DIR/tests/ui/yield_in_closure.rs:6:23: 6:26]`
|
= help: the trait `FnOnce<(&str,)>` is not implemented for `[generator@$DIR/tests/ui/yield_in_closure.rs:6:23: 6:26]`
--> tests/ui/yield_in_closure.rs:6:23
|
6 | .and_then(|v| {
| ______________--------_^
| | |
| | required by a bound introduced by this call
7 | | yield v;
8 | | Ok(())
9 | | });
| |_____________^ expected an `FnOnce<(&str,)>` closure, found `[generator@$DIR/tests/ui/yield_in_closure.rs:6:23: 6:26]`
|
= help: the trait `FnOnce<(&str,)>` is not implemented for `[generator@$DIR/tests/ui/yield_in_closure.rs:6:23: 6:26]`
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`
--> $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`

0 comments on commit ac3fa6b

Please sign in to comment.