2018-01-20 03:57:10 +00:00
|
|
|
error[E0277]: cannot add `()` to `u32`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/multiline-span-simple.rs:13:18
|
2016-10-24 00:22:06 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | foo(1 as u32 +
|
2017-05-29 11:55:54 +00:00
|
|
|
| ^ no implementation for `u32 + ()`
|
2016-10-24 00:22:06 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00: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 22:24:48 +00:00
|
|
|
<&'a u32 as Add<u32>>
|
|
|
|
<&u32 as Add<&u32>>
|
2024-03-21 12:55:28 +00:00
|
|
|
<u32 as Add<&u32>>
|
|
|
|
<u32 as Add>
|
2016-10-24 00:22:06 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2016-10-24 00:22:06 +00:00
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|