1 error[E0308]: mismatched types
2 --> $DIR/equality.rs:15:5
4 LL | fn two(x: bool) -> impl Foo {
5 | -------- expected because this return type...
8 | ----- ...is found to be `i32` here
11 | ^^^^^ expected i32, found u32
13 = note: expected type `i32`
16 error[E0277]: cannot add `impl Foo` to `u32`
17 --> $DIR/equality.rs:24:11
19 LL | n + sum_to(n - 1)
20 | ^ no implementation for `u32 + impl Foo`
22 = help: the trait `std::ops::Add<impl Foo>` is not implemented for `u32`
24 error: aborting due to 2 previous errors
26 Some errors have detailed explanations: E0277, E0308.
27 For more information about an error, try `rustc --explain E0277`.