]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/equality.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / impl-trait / equality.stderr
1 error[E0308]: mismatched types
2   --> $DIR/equality.rs:15:5
3    |
4 LL |         return 1_i32;
5    |                ----- expected because of this statement
6 LL |     }
7 LL |     0_u32
8    |     ^^^^^ expected i32, found u32
9    |
10    = note: expected type `i32`
11               found type `u32`
12
13 error[E0277]: cannot add `impl Foo` to `u32`
14   --> $DIR/equality.rs:24:11
15    |
16 LL |         n + sum_to(n - 1)
17    |           ^ no implementation for `u32 + impl Foo`
18    |
19    = help: the trait `std::ops::Add<impl Foo>` is not implemented for `u32`
20
21 error: aborting due to 2 previous errors
22
23 Some errors occurred: E0277, E0308.
24 For more information about an error, try `rustc --explain E0277`.