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