2018-07-15 16:11:54 -05:00
|
|
|
error[E0277]: cannot subtract `{integer}` from `f64`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-24352.rs:3:12
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | 1.0f64 - 1
|
2018-07-15 16:11:54 -05:00
|
|
|
| ^ no implementation for `f64 - {integer}`
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= help: the trait `Sub<{integer}>` is not implemented for `f64`
|
2021-12-13 14:56:40 -06:00
|
|
|
= help: the following implementations were found:
|
|
|
|
<&'a f64 as Sub<f64>>
|
|
|
|
<&f64 as Sub<&f64>>
|
|
|
|
<f64 as Sub<&f64>>
|
|
|
|
<f64 as Sub>
|
2022-03-26 18:14:47 -05:00
|
|
|
<&'a f32 as Sub<f32>>
|
|
|
|
<&'a i128 as Sub<i128>>
|
|
|
|
<&'a i16 as Sub<i16>>
|
|
|
|
<&'a i32 as Sub<i32>>
|
2021-12-13 14:56:40 -06:00
|
|
|
and 48 others
|
2022-02-17 04:33:32 -06:00
|
|
|
help: consider using a floating-point literal by writing it with `.0`
|
|
|
|
|
|
|
|
|
LL | 1.0f64 - 1.0
|
|
|
|
| ++
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|