Skip to content

Commit e5e6268

Browse files
authored
Update ui tests to latest stable (#51)
1 parent 25426df commit e5e6268

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

async-stream/tests/ui/yield_in_async.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ error[E0727]: `async` generators are not yet supported
1212
6 | yield 123;
1313
| ^^^^^^^^^
1414

15-
error[E0271]: type mismatch resolving `<[static generator@$DIR/src/lib.rs:202:9: 202:67 _] as Generator<ResumeTy>>::Yield == ()`
15+
error[E0271]: type mismatch resolving `<[static generator@$DIR/src/lib.rs:202:9: 202:67] as Generator<ResumeTy>>::Yield == ()`
1616
--> $DIR/yield_in_async.rs:4:5
1717
|
1818
4 | / stream! {

async-stream/tests/ui/yield_in_closure.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ error[E0658]: yield syntax is experimental
66
|
77
= note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
88

9-
error[E0277]: expected a `FnOnce<(&str,)>` closure, found `[generator@$DIR/src/lib.rs:202:9: 202:67 _]`
9+
error[E0277]: expected a `FnOnce<(&str,)>` closure, found `[generator@$DIR/src/lib.rs:202:9: 202:67]`
1010
--> $DIR/yield_in_closure.rs:6:14
1111
|
1212
6 | .and_then(|v| {
13-
| ^^^^^^^^ expected an `FnOnce<(&str,)>` closure, found `[generator@$DIR/src/lib.rs:202:9: 202:67 _]`
13+
| ^^^^^^^^ expected an `FnOnce<(&str,)>` closure, found `[generator@$DIR/src/lib.rs:202:9: 202:67]`
1414
|
15-
= help: the trait `FnOnce<(&str,)>` is not implemented for `[generator@$DIR/src/lib.rs:202:9: 202:67 _]`
15+
= help: the trait `FnOnce<(&str,)>` is not implemented for `[generator@$DIR/src/lib.rs:202:9: 202:67]`
1616

1717
Some errors have detailed explanations: E0277, E0658.
1818
For more information about an error, try `rustc --explain E0277`.

0 commit comments

Comments
 (0)