]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/self-referential.stderr
Mention implementers of unsatisfied trait
[rust.git] / src / test / ui / type-alias-impl-trait / self-referential.stderr
1 error[E0277]: can't compare `&i32` with `Bar<'b, 'a>`
2   --> $DIR/self-referential.rs:6:5
3    |
4 LL |     i
5    |     ^ no implementation for `&i32 == Bar<'b, 'a>`
6    |
7    = help: the trait `PartialEq<Bar<'b, 'a>>` is not implemented for `&i32`
8    = help: the following implementations were found:
9              <i32 as PartialEq>
10              <f32 as PartialEq>
11              <f64 as PartialEq>
12              <i128 as PartialEq>
13            and 6 others
14
15 error[E0277]: can't compare `&i32` with `(i32, &i32)`
16   --> $DIR/self-referential.rs:12:10
17    |
18 LL |     (42, i)
19    |          ^ no implementation for `&i32 == (i32, &i32)`
20    |
21    = help: the trait `PartialEq<(i32, &i32)>` is not implemented for `&i32`
22    = help: the following implementations were found:
23              <i32 as PartialEq>
24              <f32 as PartialEq>
25              <f64 as PartialEq>
26              <i128 as PartialEq>
27            and 6 others
28
29 error[E0277]: can't compare `&i32` with `(i32, Moo<'b, 'a>::{opaque#0})`
30   --> $DIR/self-referential.rs:18:10
31    |
32 LL |     (42, i)
33    |          ^ no implementation for `&i32 == (i32, Moo<'b, 'a>::{opaque#0})`
34    |
35    = help: the trait `PartialEq<(i32, Moo<'b, 'a>::{opaque#0})>` is not implemented for `&i32`
36    = help: the following implementations were found:
37              <i32 as PartialEq>
38              <f32 as PartialEq>
39              <f64 as PartialEq>
40              <i128 as PartialEq>
41            and 6 others
42
43 error: aborting due to 3 previous errors
44
45 For more information about this error, try `rustc --explain E0277`.