Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 89e8cc9

Browse files
committedFeb 8, 2024
one must imagine ci happy
1 parent 9af8dff commit 89e8cc9

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed
 

‎tests/ui/impl-trait/recursive-coroutine-boxed.next.stderr

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ error[E0282]: type annotations needed
33
|
44
LL | let mut gen = Box::pin(foo());
55
| ^^^^^^^^ cannot infer type of the type parameter `T` declared on the struct `Box`
6-
LL |
6+
...
77
LL | let mut r = gen.as_mut().resume(());
88
| ------ type must be known at this point
99
|
@@ -12,6 +12,12 @@ help: consider specifying the generic argument
1212
LL | let mut gen = Box::<T>::pin(foo());
1313
| +++++
1414

15-
error: aborting due to 1 previous error
15+
error[E0282]: type annotations needed
16+
--> $DIR/recursive-coroutine-boxed.rs:10:32
17+
|
18+
LL | let mut gen = Box::pin(foo());
19+
| ^^^^^ cannot infer type for opaque type `impl Coroutine<Yield = (), Return = ()>`
20+
21+
error: aborting due to 2 previous errors
1622

1723
For more information about this error, try `rustc --explain E0282`.

‎tests/ui/impl-trait/recursive-coroutine-boxed.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ fn foo() -> impl Coroutine<Yield = (), Return = ()> {
99
|| {
1010
let mut gen = Box::pin(foo());
1111
//[next]~^ ERROR type annotations needed
12+
//[next]~| ERROR type annotations needed
1213
let mut r = gen.as_mut().resume(());
1314
while let CoroutineState::Yielded(v) = r {
1415
yield v;

‎tests/ui/type-alias-impl-trait/type-alias-impl-trait-tuple.next.stderr

+5-6
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ error[E0284]: type annotations needed: cannot satisfy `Foo == _`
44
LL | Blah { my_foo: make_foo(), my_u8: 12 }
55
| ^^^^^^^^^^ cannot satisfy `Foo == _`
66

7-
error[E0282]: type annotations needed
8-
--> $DIR/type-alias-impl-trait-tuple.rs:24:28
7+
error[E0284]: type annotations needed: cannot satisfy `Foo == _`
8+
--> $DIR/type-alias-impl-trait-tuple.rs:25:10
99
|
10-
LL | fn into_inner(self) -> (Foo, u8, Foo) {
11-
| ^^^^^^^^^^^^^^ cannot infer type for tuple `(Foo, u8, Foo)`
10+
LL | (self.my_foo, self.my_u8, make_foo())
11+
| ^^^^^^^^^^^ cannot satisfy `Foo == _`
1212

1313
error: aborting due to 2 previous errors
1414

15-
Some errors have detailed explanations: E0282, E0284.
16-
For more information about an error, try `rustc --explain E0282`.
15+
For more information about this error, try `rustc --explain E0284`.

‎tests/ui/type-alias-impl-trait/type-alias-impl-trait-tuple.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ impl Blah {
2222
//[next]~^ ERROR type annotations needed: cannot satisfy `Foo == _`
2323
}
2424
fn into_inner(self) -> (Foo, u8, Foo) {
25-
//[next]~^ ERROR type annotations needed
2625
(self.my_foo, self.my_u8, make_foo())
26+
//[next]~^ ERROR type annotations needed: cannot satisfy `Foo == _`
2727
}
2828
}
2929

0 commit comments

Comments
 (0)
Please sign in to comment.