fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0308]: mismatched types 2 --> $DIR/equality.rs:15:5 3 | 4LL | fn two(x: bool) -> impl Foo { 5 | -------- expected because this return type... 6LL | if x { 7LL | return 1_i32; 8 | ----- ...is found to be `i32` here 9LL | } 10LL | 0_u32 11 | ^^^^^ expected i32, found u32 12 | 13 = note: expected type `i32` 14 found type `u32` 15 16error[E0277]: cannot add `impl Foo` to `u32` 17 --> $DIR/equality.rs:24:11 18 | 19LL | n + sum_to(n - 1) 20 | ^ no implementation for `u32 + impl Foo` 21 | 22 = help: the trait `std::ops::Add<impl Foo>` is not implemented for `u32` 23 24error: aborting due to 2 previous errors 25 26Some errors have detailed explanations: E0277, E0308. 27For more information about an error, try `rustc --explain E0277`.