2018-07-15 14:11:54 -07:00
|
|
|
error[E0277]: cannot add `()` to `{integer}`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-11771.rs:3:7
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
|
LL | 1 +
|
|
|
|
| ^ no implementation for `{integer} + ()`
|
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= help: the trait `Add<()>` is not implemented for `{integer}`
|
2022-03-27 02:02:07 +00:00
|
|
|
= help: the following other types implement trait `Add<Rhs>`:
|
2024-09-22 13:52:20 -04:00
|
|
|
`&f128` implements `Add<f128>`
|
|
|
|
`&f128` implements `Add`
|
|
|
|
`&f16` implements `Add<f16>`
|
|
|
|
`&f16` implements `Add`
|
|
|
|
`&f32` implements `Add<f32>`
|
|
|
|
`&f32` implements `Add`
|
|
|
|
`&f64` implements `Add<f64>`
|
|
|
|
`&f64` implements `Add`
|
2024-03-06 05:40:29 -06:00
|
|
|
and 56 others
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
error[E0277]: cannot add `()` to `{integer}`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-11771.rs:8:7
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
|
LL | 1 +
|
|
|
|
| ^ no implementation for `{integer} + ()`
|
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= help: the trait `Add<()>` is not implemented for `{integer}`
|
2022-03-27 02:02:07 +00:00
|
|
|
= help: the following other types implement trait `Add<Rhs>`:
|
2024-09-22 13:52:20 -04:00
|
|
|
`&f128` implements `Add<f128>`
|
|
|
|
`&f128` implements `Add`
|
|
|
|
`&f16` implements `Add<f16>`
|
|
|
|
`&f16` implements `Add`
|
|
|
|
`&f32` implements `Add<f32>`
|
|
|
|
`&f32` implements `Add`
|
|
|
|
`&f64` implements `Add<f64>`
|
|
|
|
`&f64` implements `Add`
|
2024-03-06 05:40:29 -06:00
|
|
|
and 56 others
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|