@@ -11,41 +11,17 @@ error[E0308]: mismatched types
11
11
found type `{integer}`
12
12
13
13
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
15
15
|
16
- 7 | let val = Some(42);
17
- | ^^^
16
+ 5 | #[async_stream]
17
+ | ^^^^^^^^^^^^^^^ cannot infer type for `{integer}`
18
18
|
19
19
note: the type is part of the generator because of this `yield`
20
20
--> $DIR/bad-return-type.rs:5:1
21
21
|
22
22
5 | #[async_stream]
23
23
| ^^^^^^^^^^^^^^^
24
24
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
-
49
25
error[E0308]: mismatched types
50
26
--> $DIR/bad-return-type.rs:21:11
51
27
|
@@ -69,63 +45,15 @@ error[E0698]: type inside generator must be known in this context
69
45
--> $DIR/bad-return-type.rs:16:1
70
46
|
71
47
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}`
121
49
|
122
50
note: the type is part of the generator because of this `yield`
123
51
--> $DIR/bad-return-type.rs:16:1
124
52
|
125
53
16 | #[async_stream]
126
54
| ^^^^^^^^^^^^^^^
127
55
128
- error: aborting due to 11 previous errors
56
+ error: aborting due to 5 previous errors
129
57
130
- Some errors have detailed explanations: E0271, E0308.
58
+ Some errors have detailed explanations: E0271, E0308, E0698 .
131
59
For more information about an error, try `rustc --explain E0271`.
0 commit comments