]> git.proxmox.com Git - rustc.git/blob - tests/ui/type-alias-impl-trait/self-referential-4.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / type-alias-impl-trait / self-referential-4.stderr
1 error[E0277]: can't compare `&i32` with `Bar<'b, 'static>`
2 --> $DIR/self-referential-4.rs:5:31
3 |
4 LL | fn bar<'a, 'b>(i: &'a i32) -> Bar<'a, 'b> {
5 | ^^^^^^^^^^^ no implementation for `&i32 == Bar<'b, 'static>`
6 LL | i
7 | - return type was inferred to be `&i32` here
8 |
9 = help: the trait `PartialEq<Bar<'b, 'static>>` is not implemented for `&i32`
10 = help: the trait `PartialEq` is implemented for `i32`
11
12 error[E0277]: can't compare `&i32` with `Foo<'static, 'b>`
13 --> $DIR/self-referential-4.rs:11:31
14 |
15 LL | fn foo<'a, 'b>(i: &'a i32) -> Foo<'a, 'b> {
16 | ^^^^^^^^^^^ no implementation for `&i32 == Foo<'static, 'b>`
17 LL | i
18 | - return type was inferred to be `&i32` here
19 |
20 = help: the trait `PartialEq<Foo<'static, 'b>>` is not implemented for `&i32`
21 = help: the trait `PartialEq` is implemented for `i32`
22
23 error[E0277]: can't compare `&i32` with `Moo<'static, 'a>`
24 --> $DIR/self-referential-4.rs:17:31
25 |
26 LL | fn moo<'a, 'b>(i: &'a i32) -> Moo<'a, 'b> {
27 | ^^^^^^^^^^^ no implementation for `&i32 == Moo<'static, 'a>`
28 LL | i
29 | - return type was inferred to be `&i32` here
30 |
31 = help: the trait `PartialEq<Moo<'static, 'a>>` is not implemented for `&i32`
32 = help: the trait `PartialEq` is implemented for `i32`
33
34 error: aborting due to 3 previous errors
35
36 For more information about this error, try `rustc --explain E0277`.