]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/self-referential-2.stderr
Auto merge of #95440 - jyn514:error-index, r=Mark-Simulacrum
[rust.git] / src / test / ui / type-alias-impl-trait / self-referential-2.stderr
1 error[E0277]: can't compare `i32` with `Foo`
2   --> $DIR/self-referential-2.rs:7:5
3    |
4 LL |     42_i32
5    |     ^^^^^^ no implementation for `i32 == Foo`
6    |
7    = help: the trait `PartialEq<Foo>` is not implemented for `i32`
8    = help: the following other types implement trait `PartialEq<Rhs>`:
9              f32
10              f64
11              i128
12              i16
13              i32
14              i64
15              i8
16              isize
17            and 6 others
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0277`.