Skip to content

Commit 430f9f0

Browse files
committed
Update ui tests
1 parent 0596a93 commit 430f9f0

File tree

2 files changed

+19
-138
lines changed

2 files changed

+19
-138
lines changed

futures/testcrate/ui/bad-return-type.stderr

+6-78
Original file line numberDiff line numberDiff line change
@@ -11,41 +11,17 @@ error[E0308]: mismatched types
1111
found type `{integer}`
1212

1313
error[E0698]: type inside generator must be known in this context
14-
--> $DIR/bad-return-type.rs:7:9
14+
--> $DIR/bad-return-type.rs:5:1
1515
|
16-
7 | let val = Some(42);
17-
| ^^^
16+
5 | #[async_stream]
17+
| ^^^^^^^^^^^^^^^ cannot infer type for `{integer}`
1818
|
1919
note: the type is part of the generator because of this `yield`
2020
--> $DIR/bad-return-type.rs:5:1
2121
|
2222
5 | #[async_stream]
2323
| ^^^^^^^^^^^^^^^
2424

25-
error[E0698]: type inside generator must be known in this context
26-
--> $DIR/bad-return-type.rs:12:9
27-
|
28-
12 | let val = val.unwrap();
29-
| ^^^
30-
|
31-
note: the type is part of the generator because of this `yield`
32-
--> $DIR/bad-return-type.rs:5:1
33-
|
34-
5 | #[async_stream]
35-
| ^^^^^^^^^^^^^^^
36-
37-
error[E0698]: type inside generator must be known in this context
38-
--> $DIR/bad-return-type.rs:13:11
39-
|
40-
13 | yield val;
41-
| ^^^
42-
|
43-
note: the type is part of the generator because of this `yield`
44-
--> $DIR/bad-return-type.rs:5:1
45-
|
46-
5 | #[async_stream]
47-
| ^^^^^^^^^^^^^^^
48-
4925
error[E0308]: mismatched types
5026
--> $DIR/bad-return-type.rs:21:11
5127
|
@@ -69,63 +45,15 @@ error[E0698]: type inside generator must be known in this context
6945
--> $DIR/bad-return-type.rs:16:1
7046
|
7147
16 | #[async_stream]
72-
| ^^^^^^^^^^^^^^^
73-
|
74-
note: the type is part of the generator because of this `yield`
75-
--> $DIR/bad-return-type.rs:16:1
76-
|
77-
16 | #[async_stream]
78-
| ^^^^^^^^^^^^^^^
79-
80-
error[E0698]: type inside generator must be known in this context
81-
--> $DIR/bad-return-type.rs:19:15
82-
|
83-
19 | yield 3;
84-
| ^
85-
|
86-
note: the type is part of the generator because of this `yield`
87-
--> $DIR/bad-return-type.rs:16:1
88-
|
89-
16 | #[async_stream]
90-
| ^^^^^^^^^^^^^^^
91-
92-
error[E0698]: type inside generator must be known in this context
93-
--> $DIR/bad-return-type.rs:21:12
94-
|
95-
21 | yield (1, 2)
96-
| ^
97-
|
98-
note: the type is part of the generator because of this `yield`
99-
--> $DIR/bad-return-type.rs:16:1
100-
|
101-
16 | #[async_stream]
102-
| ^^^^^^^^^^^^^^^
103-
104-
error[E0698]: type inside generator must be known in this context
105-
--> $DIR/bad-return-type.rs:21:15
106-
|
107-
21 | yield (1, 2)
108-
| ^
109-
|
110-
note: the type is part of the generator because of this `yield`
111-
--> $DIR/bad-return-type.rs:16:1
112-
|
113-
16 | #[async_stream]
114-
| ^^^^^^^^^^^^^^^
115-
116-
error[E0698]: type inside generator must be known in this context
117-
--> $DIR/bad-return-type.rs:21:11
118-
|
119-
21 | yield (1, 2)
120-
| ^^^^^^
48+
| ^^^^^^^^^^^^^^^ cannot infer type for `{integer}`
12149
|
12250
note: the type is part of the generator because of this `yield`
12351
--> $DIR/bad-return-type.rs:16:1
12452
|
12553
16 | #[async_stream]
12654
| ^^^^^^^^^^^^^^^
12755

128-
error: aborting due to 11 previous errors
56+
error: aborting due to 5 previous errors
12957

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

futures/testcrate/ui/nested.stderr

+13-60
Original file line numberDiff line numberDiff line change
@@ -8,58 +8,10 @@ error[E0308]: mismatched types
88
found type `{integer}`
99

1010
error[E0698]: type inside generator must be known in this context
11-
--> $DIR/nested.rs:5:1
12-
|
13-
5 | #[async_stream]
14-
| ^^^^^^^^^^^^^^^
15-
|
16-
note: the type is part of the generator because of this `yield`
17-
--> $DIR/nested.rs:10:13
18-
|
19-
10| yield i * i;
20-
| ^^^^^^^^^^^
21-
22-
error[E0698]: type inside generator must be known in this context
23-
--> $DIR/nested.rs:5:1
24-
|
25-
5 | #[async_stream]
26-
| ^^^^^^^^^^^^^^^
27-
|
28-
note: the type is part of the generator because of this `yield`
29-
--> $DIR/nested.rs:5:1
30-
|
31-
5 | #[async_stream]
32-
| ^^^^^^^^^^^^^^^
33-
34-
error[E0698]: type inside generator must be known in this context
35-
--> $DIR/nested.rs:9:13
36-
|
37-
9 | for i in stream::iter(vec![1, 2]) {
38-
| ^
39-
|
40-
note: the type is part of the generator because of this `yield`
41-
--> $DIR/nested.rs:10:13
42-
|
43-
10| yield i * i;
44-
| ^^^^^^^^^^^
45-
46-
error[E0698]: type inside generator must be known in this context
47-
--> $DIR/nested.rs:10:19
48-
|
49-
10 | yield i * i;
50-
| ^
51-
|
52-
note: the type is part of the generator because of this `yield`
5311
--> $DIR/nested.rs:10:13
5412
|
5513
10 | yield i * i;
56-
| ^^^^^^^^^^^
57-
58-
error[E0698]: type inside generator must be known in this context
59-
--> $DIR/nested.rs:10:23
60-
|
61-
10 | yield i * i;
62-
| ^
14+
| ^^^^^^^^^^^ cannot infer type for `{integer}`
6315
|
6416
note: the type is part of the generator because of this `yield`
6517
--> $DIR/nested.rs:10:13
@@ -68,17 +20,18 @@ note: the type is part of the generator because of this `yield`
6820
| ^^^^^^^^^^^
6921

7022
error[E0698]: type inside generator must be known in this context
71-
--> $DIR/nested.rs:10:19
72-
|
73-
10 | yield i * i;
74-
| ^^^^^
75-
|
23+
--> $DIR/nested.rs:5:1
24+
|
25+
5 | #[async_stream]
26+
| ^^^^^^^^^^^^^^^ cannot infer type for `{integer}`
27+
|
7628
note: the type is part of the generator because of this `yield`
77-
--> $DIR/nested.rs:10:13
78-
|
79-
10 | yield i * i;
80-
| ^^^^^^^^^^^
29+
--> $DIR/nested.rs:5:1
30+
|
31+
5 | #[async_stream]
32+
| ^^^^^^^^^^^^^^^
8133

82-
error: aborting due to 7 previous errors
34+
error: aborting due to 3 previous errors
8335

84-
For more information about this error, try `rustc --explain E0308`.
36+
Some errors have detailed explanations: E0308, E0698.
37+
For more information about an error, try `rustc --explain E0308`.

0 commit comments

Comments
 (0)