Skip to content

Commit

Permalink
Fix ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jul 19, 2019
1 parent 74eb65e commit de11312
Showing 1 changed file with 76 additions and 4 deletions.
80 changes: 76 additions & 4 deletions futures/testcrate/ui/bad-item-type.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,41 @@ error[E0308]: mismatched types
found type `{integer}`

error[E0698]: type inside generator must be known in this context
--> $DIR/bad-item-type.rs:5:1
--> $DIR/bad-item-type.rs:7:9
|
5 | #[async_stream(item = Option<i32>)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for `{integer}`
7 | let val = Some(42);
| ^^^ cannot infer type for `{integer}`
|
note: the type is part of the generator because of this `yield`
--> $DIR/bad-item-type.rs:5:1
|
5 | #[async_stream(item = Option<i32>)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0698]: type inside generator must be known in this context
--> $DIR/bad-item-type.rs:12:9
|
12 | let val = val.unwrap();
| ^^^ cannot infer type for `{integer}`
|
note: the type is part of the generator because of this `yield`
--> $DIR/bad-item-type.rs:5:1
|
5 | #[async_stream(item = Option<i32>)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0698]: type inside generator must be known in this context
--> $DIR/bad-item-type.rs:13:11
|
13 | yield val;
| ^^^ cannot infer type for `{integer}`
|
note: the type is part of the generator because of this `yield`
--> $DIR/bad-item-type.rs:5:1
|
5 | #[async_stream(item = Option<i32>)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> $DIR/bad-item-type.rs:21:11
|
Expand Down Expand Up @@ -53,7 +77,55 @@ note: the type is part of the generator because of this `yield`
16 | #[async_stream(item = (i32, i32))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 5 previous errors
error[E0698]: type inside generator must be known in this context
--> $DIR/bad-item-type.rs:19:15
|
19 | yield 3;
| ^ cannot infer type for `{integer}`
|
note: the type is part of the generator because of this `yield`
--> $DIR/bad-item-type.rs:16:1
|
16 | #[async_stream(item = (i32, i32))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0698]: type inside generator must be known in this context
--> $DIR/bad-item-type.rs:21:12
|
21 | yield (1, 2)
| ^ cannot infer type for `{integer}`
|
note: the type is part of the generator because of this `yield`
--> $DIR/bad-item-type.rs:16:1
|
16 | #[async_stream(item = (i32, i32))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0698]: type inside generator must be known in this context
--> $DIR/bad-item-type.rs:21:15
|
21 | yield (1, 2)
| ^ cannot infer type for `{integer}`
|
note: the type is part of the generator because of this `yield`
--> $DIR/bad-item-type.rs:16:1
|
16 | #[async_stream(item = (i32, i32))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0698]: type inside generator must be known in this context
--> $DIR/bad-item-type.rs:21:11
|
21 | yield (1, 2)
| ^^^^^^ cannot infer type for `{integer}`
|
note: the type is part of the generator because of this `yield`
--> $DIR/bad-item-type.rs:16:1
|
16 | #[async_stream(item = (i32, i32))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 11 previous errors

Some errors have detailed explanations: E0271, E0308, E0698.
For more information about an error, try `rustc --explain E0271`.

0 comments on commit de11312

Please sign in to comment.