1 error[E0308]: mismatched types
2 --> $DIR/equality.rs:25:5
5 | ^^^^^ expected i32, found u32
7 = note: expected type `i32`
10 error[E0277]: the trait bound `u32: std::ops::Add<impl Foo>` is not satisfied
11 --> $DIR/equality.rs:34:11
13 34 | n + sum_to(n - 1)
14 | ^ no implementation for `u32 + impl Foo`
16 = help: the trait `std::ops::Add<impl Foo>` is not implemented for `u32`
18 error[E0308]: mismatched types
19 --> $DIR/equality.rs:53:18
21 53 | let _: u32 = hide(0_u32);
22 | ^^^^^^^^^^^ expected u32, found anonymized type
24 = note: expected type `u32`
27 error[E0308]: mismatched types
28 --> $DIR/equality.rs:59:18
30 59 | let _: i32 = Leak::leak(hide(0_i32));
31 | ^^^^^^^^^^^^^^^^^^^^^^^ expected i32, found associated type
33 = note: expected type `i32`
34 found type `<impl Foo as Leak>::T`
36 error[E0308]: mismatched types
37 --> $DIR/equality.rs:66:10
40 | ^^^ expected u32, found i32
42 = note: expected type `impl Foo` (u32)
43 found type `impl Foo` (i32)
45 error[E0308]: mismatched types
46 --> $DIR/equality.rs:69:10
49 | ^^^ expected i32, found u32
51 = note: expected type `impl Foo` (i32)
52 found type `impl Foo` (u32)
54 error: aborting due to 6 previous errors