2018-01-19 21:57:10 -06:00
|
|
|
error[E0277]: cannot add `()` to `u32`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/multiline-span-simple.rs:13:18
|
2016-10-23 19:22:06 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | foo(1 as u32 +
|
2017-05-29 06:55:54 -05:00
|
|
|
| ^ no implementation for `u32 + ()`
|
2016-10-23 19:22:06 -05:00
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= help: the trait `Add<()>` is not implemented for `u32`
|
2022-03-26 21:02:07 -05:00
|
|
|
= help: the following other types implement trait `Add<Rhs>`:
|
2022-12-05 16:24:48 -06:00
|
|
|
<&'a u32 as Add<u32>>
|
|
|
|
<&u32 as Add<&u32>>
|
|
|
|
<u32 as Add<&u32>>
|
|
|
|
<u32 as Add>
|
2016-10-23 19:22:06 -05:00
|
|
|
|
2017-07-02 05:49:30 -05:00
|
|
|
error: aborting due to previous error
|
2016-10-23 19:22:06 -05:00
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|