error[E0277]: cannot add `{integer}` to `f32` --> $DIR/suggest-float-literal.rs:6:7 | LL | x + 100 | ^ no implementation for `f32 + {integer}` | = help: the trait `Add<{integer}>` is not implemented for `f32` = help: the following other types implement trait `Add`: <&'a f32 as Add> <&'a f64 as Add> <&'a i128 as Add> <&'a i16 as Add> <&'a i32 as Add> <&'a i64 as Add> <&'a i8 as Add> <&'a isize as Add> and 48 others help: consider using a floating-point literal by writing it with `.0` | LL | x + 100.0 | ++ error[E0277]: cannot add `{integer}` to `f64` --> $DIR/suggest-float-literal.rs:10:7 | LL | x + 100 | ^ no implementation for `f64 + {integer}` | = help: the trait `Add<{integer}>` is not implemented for `f64` = help: the following other types implement trait `Add`: <&'a f32 as Add> <&'a f64 as Add> <&'a i128 as Add> <&'a i16 as Add> <&'a i32 as Add> <&'a i64 as Add> <&'a i8 as Add> <&'a isize as Add> and 48 others help: consider using a floating-point literal by writing it with `.0` | LL | x + 100.0 | ++ error[E0277]: cannot subtract `{integer}` from `f32` --> $DIR/suggest-float-literal.rs:14:7 | LL | x - 100 | ^ no implementation for `f32 - {integer}` | = help: the trait `Sub<{integer}>` is not implemented for `f32` = help: the following other types implement trait `Sub`: <&'a f32 as Sub> <&'a f64 as Sub> <&'a i128 as Sub> <&'a i16 as Sub> <&'a i32 as Sub> <&'a i64 as Sub> <&'a i8 as Sub> <&'a isize as Sub> and 48 others help: consider using a floating-point literal by writing it with `.0` | LL | x - 100.0 | ++ error[E0277]: cannot subtract `{integer}` from `f64` --> $DIR/suggest-float-literal.rs:18:7 | LL | x - 100 | ^ no implementation for `f64 - {integer}` | = help: the trait `Sub<{integer}>` is not implemented for `f64` = help: the following other types implement trait `Sub`: <&'a f32 as Sub> <&'a f64 as Sub> <&'a i128 as Sub> <&'a i16 as Sub> <&'a i32 as Sub> <&'a i64 as Sub> <&'a i8 as Sub> <&'a isize as Sub> and 48 others help: consider using a floating-point literal by writing it with `.0` | LL | x - 100.0 | ++ error[E0277]: cannot multiply `f32` by `{integer}` --> $DIR/suggest-float-literal.rs:22:7 | LL | x * 100 | ^ no implementation for `f32 * {integer}` | = help: the trait `Mul<{integer}>` is not implemented for `f32` = help: the following other types implement trait `Mul`: <&'a f32 as Mul> <&'a f64 as Mul> <&'a i128 as Mul> <&'a i16 as Mul> <&'a i32 as Mul> <&'a i64 as Mul> <&'a i8 as Mul> <&'a isize as Mul> and 49 others help: consider using a floating-point literal by writing it with `.0` | LL | x * 100.0 | ++ error[E0277]: cannot multiply `f64` by `{integer}` --> $DIR/suggest-float-literal.rs:26:7 | LL | x * 100 | ^ no implementation for `f64 * {integer}` | = help: the trait `Mul<{integer}>` is not implemented for `f64` = help: the following other types implement trait `Mul`: <&'a f32 as Mul> <&'a f64 as Mul> <&'a i128 as Mul> <&'a i16 as Mul> <&'a i32 as Mul> <&'a i64 as Mul> <&'a i8 as Mul> <&'a isize as Mul> and 49 others help: consider using a floating-point literal by writing it with `.0` | LL | x * 100.0 | ++ error[E0277]: cannot divide `f32` by `{integer}` --> $DIR/suggest-float-literal.rs:30:7 | LL | x / 100 | ^ no implementation for `f32 / {integer}` | = help: the trait `Div<{integer}>` is not implemented for `f32` = help: the following other types implement trait `Div`: <&'a f32 as Div> <&'a f64 as Div> <&'a i128 as Div> <&'a i16 as Div> <&'a i32 as Div> <&'a i64 as Div> <&'a i8 as Div> <&'a isize as Div> and 54 others help: consider using a floating-point literal by writing it with `.0` | LL | x / 100.0 | ++ error[E0277]: cannot divide `f64` by `{integer}` --> $DIR/suggest-float-literal.rs:34:7 | LL | x / 100 | ^ no implementation for `f64 / {integer}` | = help: the trait `Div<{integer}>` is not implemented for `f64` = help: the following other types implement trait `Div`: <&'a f32 as Div> <&'a f64 as Div> <&'a i128 as Div> <&'a i16 as Div> <&'a i32 as Div> <&'a i64 as Div> <&'a i8 as Div> <&'a isize as Div> and 54 others help: consider using a floating-point literal by writing it with `.0` | LL | x / 100.0 | ++ error: aborting due to 8 previous errors For more information about this error, try `rustc --explain E0277`.