1 error[E0308]: mismatched types
2 --> $DIR/equality.rs:15:5
5 | ----- expected because of this statement
8 | ^^^^^ expected i32, found u32
10 = note: expected type `i32`
13 error[E0277]: cannot add `impl Foo` to `u32`
14 --> $DIR/equality.rs:24:11
16 LL | n + sum_to(n - 1)
17 | ^ no implementation for `u32 + impl Foo`
19 = help: the trait `std::ops::Add<impl Foo>` is not implemented for `u32`
21 error: aborting due to 2 previous errors
23 Some errors occurred: E0277, E0308.
24 For more information about an error, try `rustc --explain E0277`.