one must imagine ci happy

This commit is contained in:
lcnr 2024-02-08 10:20:15 +01:00
parent e5541cf895
commit 51a1000cda
2 changed files with 6 additions and 7 deletions

View File

@ -4,13 +4,12 @@ error[E0284]: type annotations needed: cannot satisfy `Foo == _`
LL | Blah { my_foo: make_foo(), my_u8: 12 }
| ^^^^^^^^^^ cannot satisfy `Foo == _`
error[E0282]: type annotations needed
--> $DIR/type-alias-impl-trait-tuple.rs:24:28
error[E0284]: type annotations needed: cannot satisfy `Foo == _`
--> $DIR/type-alias-impl-trait-tuple.rs:25:10
|
LL | fn into_inner(self) -> (Foo, u8, Foo) {
| ^^^^^^^^^^^^^^ cannot infer type for tuple `(Foo, u8, Foo)`
LL | (self.my_foo, self.my_u8, make_foo())
| ^^^^^^^^^^^ cannot satisfy `Foo == _`
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0282, E0284.
For more information about an error, try `rustc --explain E0282`.
For more information about this error, try `rustc --explain E0284`.

View File

@ -22,8 +22,8 @@ impl Blah {
//[next]~^ ERROR type annotations needed: cannot satisfy `Foo == _`
}
fn into_inner(self) -> (Foo, u8, Foo) {
//[next]~^ ERROR type annotations needed
(self.my_foo, self.my_u8, make_foo())
//[next]~^ ERROR type annotations needed: cannot satisfy `Foo == _`
}
}