]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/recursive-type-alias-impl-trait-declaration-too-subtle-2.stderr
Rollup merge of #106097 - mejrs:mir_build2, r=oli-obk
[rust.git] / tests / ui / impl-trait / recursive-type-alias-impl-trait-declaration-too-subtle-2.stderr
1 error[E0277]: can't compare `Bar` with `(Bar, i32)`
2   --> $DIR/recursive-type-alias-impl-trait-declaration-too-subtle-2.rs:13:13
3    |
4 LL | fn foo() -> Foo {
5    |             ^^^ no implementation for `Bar == (Bar, i32)`
6 LL |
7 LL |     Bar
8    |     --- return type was inferred to be `Bar` here
9    |
10    = help: the trait `PartialEq<(Bar, i32)>` is not implemented for `Bar`
11    = help: the trait `PartialEq<(Foo, i32)>` is implemented for `Bar`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.