1 error[E0277]: cannot add `u32` to `i32`
2 --> $DIR/ufcs-qpath-self-mismatch.rs:4:5
4 LL | <i32 as Add<u32>>::add(1, 2);
5 | ^^^^^^^^^^^^^^^^^^^^^^ no implementation for `i32 + u32`
7 = help: the trait `Add<u32>` is not implemented for `i32`
8 = help: the following other types implement trait `Add<Rhs>`:
11 <&'a i128 as Add<i128>>
16 <&'a isize as Add<isize>>
19 error[E0308]: mismatched types
20 --> $DIR/ufcs-qpath-self-mismatch.rs:6:28
22 LL | <i32 as Add<i32>>::add(1u32, 2);
23 | ---------------------- ^^^^ expected `i32`, found `u32`
25 | arguments to this function are incorrect
27 note: associated function defined here
28 --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
30 LL | fn add(self, rhs: Rhs) -> Self::Output;
32 help: change the type of the numeric literal from `u32` to `i32`
34 LL | <i32 as Add<i32>>::add(1i32, 2);
37 error[E0308]: mismatched types
38 --> $DIR/ufcs-qpath-self-mismatch.rs:8:31
40 LL | <i32 as Add<i32>>::add(1, 2u32);
41 | ---------------------- ^^^^ expected `i32`, found `u32`
43 | arguments to this function are incorrect
45 note: associated function defined here
46 --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
48 LL | fn add(self, rhs: Rhs) -> Self::Output;
50 help: change the type of the numeric literal from `u32` to `i32`
52 LL | <i32 as Add<i32>>::add(1, 2i32);
55 error: aborting due to 3 previous errors
57 Some errors have detailed explanations: E0277, E0308.
58 For more information about an error, try `rustc --explain E0277`.