2018-07-15 16:11:54 -05:00
|
|
|
error[E0277]: cannot add `()` to `{integer}`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-11771.rs:3:7
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | 1 +
|
|
|
|
| ^ no implementation for `{integer} + ()`
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= help: the trait `Add<()>` is not implemented for `{integer}`
|
2022-03-26 21:02:07 -05:00
|
|
|
= help: the following other types implement trait `Add<Rhs>`:
|
2023-06-27 18:31:06 -05:00
|
|
|
<isize as Add>
|
|
|
|
<isize as Add<&isize>>
|
|
|
|
<i8 as Add>
|
|
|
|
<i8 as Add<&i8>>
|
|
|
|
<i16 as Add>
|
|
|
|
<i16 as Add<&i16>>
|
|
|
|
<i32 as Add>
|
|
|
|
<i32 as Add<&i32>>
|
2021-12-13 14:56:40 -06:00
|
|
|
and 48 others
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
error[E0277]: cannot add `()` to `{integer}`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-11771.rs:8:7
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | 1 +
|
|
|
|
| ^ no implementation for `{integer} + ()`
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= help: the trait `Add<()>` is not implemented for `{integer}`
|
2022-03-26 21:02:07 -05:00
|
|
|
= help: the following other types implement trait `Add<Rhs>`:
|
2023-06-27 18:31:06 -05:00
|
|
|
<isize as Add>
|
|
|
|
<isize as Add<&isize>>
|
|
|
|
<i8 as Add>
|
|
|
|
<i8 as Add<&i8>>
|
|
|
|
<i16 as Add>
|
|
|
|
<i16 as Add<&i16>>
|
|
|
|
<i32 as Add>
|
|
|
|
<i32 as Add<&i32>>
|
2021-12-13 14:56:40 -06:00
|
|
|
and 48 others
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|