]> git.lizzy.rs Git - rust.git/blob - src/test/ui/ufcs/ufcs-qpath-self-mismatch.stderr
610146954c9857a0f09aeb3cf8fa4668f8897081
[rust.git] / src / test / ui / ufcs / ufcs-qpath-self-mismatch.stderr
1 error[E0277]: cannot add `u32` to `i32`
2   --> $DIR/ufcs-qpath-self-mismatch.rs:4:5
3    |
4 LL |     <i32 as Add<u32>>::add(1, 2);
5    |     ^^^^^^^^^^^^^^^^^^^^^^ no implementation for `i32 + u32`
6    |
7    = help: the trait `std::ops::Add<u32>` is not implemented for `i32`
8
9 error[E0308]: mismatched types
10   --> $DIR/ufcs-qpath-self-mismatch.rs:6:28
11    |
12 LL |     <i32 as Add<i32>>::add(1u32, 2);
13    |                            ^^^^ expected i32, found u32
14
15 error[E0308]: mismatched types
16   --> $DIR/ufcs-qpath-self-mismatch.rs:8:31
17    |
18 LL |     <i32 as Add<i32>>::add(1, 2u32);
19    |                               ^^^^ expected i32, found u32
20
21 error: aborting due to 3 previous errors
22
23 Some errors have detailed explanations: E0277, E0308.
24 For more information about an error, try `rustc --explain E0277`.