fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: cannot subtract `{integer}` from `f64` 2 --> $DIR/issue-24352.rs:3:12 3 | 4LL | 1.0f64 - 1 5 | ^ no implementation for `f64 - {integer}` 6 | 7 = help: the trait `Sub<{integer}>` is not implemented for `f64` 8 = help: the following other types implement trait `Sub<Rhs>`: 9 <f64 as Sub> 10 <f64 as Sub<&f64>> 11 <&'a f64 as Sub<f64>> 12 <&f64 as Sub<&f64>> 13help: consider using a floating-point literal by writing it with `.0` 14 | 15LL | 1.0f64 - 1.0 16 | ++ 17 18error: aborting due to previous error 19 20For more information about this error, try `rustc --explain E0277`.