]>
Commit | Line | Data |
---|---|---|
2c00a5a8 | 1 | error[E0277]: cannot add `()` to `u32` |
0731742a | 2 | --> $DIR/multiline-span-simple.rs:13:18 |
476ff2be | 3 | | |
532ac7d7 | 4 | LL | foo(1 as u32 + |
7cac9316 | 5 | | ^ no implementation for `u32 + ()` |
476ff2be | 6 | | |
1b1a35ee | 7 | = help: the trait `Add<()>` is not implemented for `u32` |
04454e1e | 8 | = help: the following other types implement trait `Add<Rhs>`: |
487cf647 FG |
9 | <&'a u32 as Add<u32>> |
10 | <&u32 as Add<&u32>> | |
11 | <u32 as Add<&u32>> | |
12 | <u32 as Add> | |
476ff2be | 13 | |
041b39d2 | 14 | error: aborting due to previous error |
476ff2be | 15 | |
0531ce1d | 16 | For more information about this error, try `rustc --explain E0277`. |