1 error[E0277]: cannot add `{integer}` to `f32`
2 --> $DIR/suggest-float-literal.rs:6:7
5 | ^ no implementation for `f32 + {integer}`
7 = help: the trait `Add<{integer}>` is not implemented for `f32`
8 = help: the following other types implement trait `Add<Rhs>`:
13 help: consider using a floating-point literal by writing it with `.0`
18 error[E0277]: cannot add `{integer}` to `f64`
19 --> $DIR/suggest-float-literal.rs:10:7
22 | ^ no implementation for `f64 + {integer}`
24 = help: the trait `Add<{integer}>` is not implemented for `f64`
25 = help: the following other types implement trait `Add<Rhs>`:
30 help: consider using a floating-point literal by writing it with `.0`
35 error[E0277]: cannot subtract `{integer}` from `f32`
36 --> $DIR/suggest-float-literal.rs:14:7
39 | ^ no implementation for `f32 - {integer}`
41 = help: the trait `Sub<{integer}>` is not implemented for `f32`
42 = help: the following other types implement trait `Sub<Rhs>`:
47 help: consider using a floating-point literal by writing it with `.0`
52 error[E0277]: cannot subtract `{integer}` from `f64`
53 --> $DIR/suggest-float-literal.rs:18:7
56 | ^ no implementation for `f64 - {integer}`
58 = help: the trait `Sub<{integer}>` is not implemented for `f64`
59 = help: the following other types implement trait `Sub<Rhs>`:
64 help: consider using a floating-point literal by writing it with `.0`
69 error[E0277]: cannot multiply `f32` by `{integer}`
70 --> $DIR/suggest-float-literal.rs:22:7
73 | ^ no implementation for `f32 * {integer}`
75 = help: the trait `Mul<{integer}>` is not implemented for `f32`
76 = help: the following other types implement trait `Mul<Rhs>`:
81 help: consider using a floating-point literal by writing it with `.0`
86 error[E0277]: cannot multiply `f64` by `{integer}`
87 --> $DIR/suggest-float-literal.rs:26:7
90 | ^ no implementation for `f64 * {integer}`
92 = help: the trait `Mul<{integer}>` is not implemented for `f64`
93 = help: the following other types implement trait `Mul<Rhs>`:
98 help: consider using a floating-point literal by writing it with `.0`
103 error[E0277]: cannot divide `f32` by `{integer}`
104 --> $DIR/suggest-float-literal.rs:30:7
107 | ^ no implementation for `f32 / {integer}`
109 = help: the trait `Div<{integer}>` is not implemented for `f32`
110 = help: the following other types implement trait `Div<Rhs>`:
111 <&'a f32 as Div<f32>>
115 help: consider using a floating-point literal by writing it with `.0`
120 error[E0277]: cannot divide `f64` by `{integer}`
121 --> $DIR/suggest-float-literal.rs:34:7
124 | ^ no implementation for `f64 / {integer}`
126 = help: the trait `Div<{integer}>` is not implemented for `f64`
127 = help: the following other types implement trait `Div<Rhs>`:
128 <&'a f64 as Div<f64>>
132 help: consider using a floating-point literal by writing it with `.0`
137 error: aborting due to 8 previous errors
139 For more information about this error, try `rustc --explain E0277`.