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