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>`:
11 <&'a i128 as Add<i128>>
16 <&'a isize as Add<isize>>
18 help: consider using a floating-point literal by writing it with `.0`
23 error[E0277]: cannot add `{integer}` to `f64`
24 --> $DIR/suggest-float-literal.rs:10:7
27 | ^ no implementation for `f64 + {integer}`
29 = help: the trait `Add<{integer}>` is not implemented for `f64`
30 = help: the following other types implement trait `Add<Rhs>`:
33 <&'a i128 as Add<i128>>
38 <&'a isize as Add<isize>>
40 help: consider using a floating-point literal by writing it with `.0`
45 error[E0277]: cannot subtract `{integer}` from `f32`
46 --> $DIR/suggest-float-literal.rs:14:7
49 | ^ no implementation for `f32 - {integer}`
51 = help: the trait `Sub<{integer}>` is not implemented for `f32`
52 = help: the following other types implement trait `Sub<Rhs>`:
55 <&'a i128 as Sub<i128>>
60 <&'a isize as Sub<isize>>
62 help: consider using a floating-point literal by writing it with `.0`
67 error[E0277]: cannot subtract `{integer}` from `f64`
68 --> $DIR/suggest-float-literal.rs:18:7
71 | ^ no implementation for `f64 - {integer}`
73 = help: the trait `Sub<{integer}>` is not implemented for `f64`
74 = help: the following other types implement trait `Sub<Rhs>`:
77 <&'a i128 as Sub<i128>>
82 <&'a isize as Sub<isize>>
84 help: consider using a floating-point literal by writing it with `.0`
89 error[E0277]: cannot multiply `f32` by `{integer}`
90 --> $DIR/suggest-float-literal.rs:22:7
93 | ^ no implementation for `f32 * {integer}`
95 = help: the trait `Mul<{integer}>` is not implemented for `f32`
96 = help: the following other types implement trait `Mul<Rhs>`:
99 <&'a i128 as Mul<i128>>
100 <&'a i16 as Mul<i16>>
101 <&'a i32 as Mul<i32>>
102 <&'a i64 as Mul<i64>>
104 <&'a isize as Mul<isize>>
106 help: consider using a floating-point literal by writing it with `.0`
111 error[E0277]: cannot multiply `f64` by `{integer}`
112 --> $DIR/suggest-float-literal.rs:26:7
115 | ^ no implementation for `f64 * {integer}`
117 = help: the trait `Mul<{integer}>` is not implemented for `f64`
118 = help: the following other types implement trait `Mul<Rhs>`:
119 <&'a f32 as Mul<f32>>
120 <&'a f64 as Mul<f64>>
121 <&'a i128 as Mul<i128>>
122 <&'a i16 as Mul<i16>>
123 <&'a i32 as Mul<i32>>
124 <&'a i64 as Mul<i64>>
126 <&'a isize as Mul<isize>>
128 help: consider using a floating-point literal by writing it with `.0`
133 error[E0277]: cannot divide `f32` by `{integer}`
134 --> $DIR/suggest-float-literal.rs:30:7
137 | ^ no implementation for `f32 / {integer}`
139 = help: the trait `Div<{integer}>` is not implemented for `f32`
140 = help: the following other types implement trait `Div<Rhs>`:
141 <&'a f32 as Div<f32>>
142 <&'a f64 as Div<f64>>
143 <&'a i128 as Div<i128>>
144 <&'a i16 as Div<i16>>
145 <&'a i32 as Div<i32>>
146 <&'a i64 as Div<i64>>
148 <&'a isize as Div<isize>>
150 help: consider using a floating-point literal by writing it with `.0`
155 error[E0277]: cannot divide `f64` by `{integer}`
156 --> $DIR/suggest-float-literal.rs:34:7
159 | ^ no implementation for `f64 / {integer}`
161 = help: the trait `Div<{integer}>` is not implemented for `f64`
162 = help: the following other types implement trait `Div<Rhs>`:
163 <&'a f32 as Div<f32>>
164 <&'a f64 as Div<f64>>
165 <&'a i128 as Div<i128>>
166 <&'a i16 as Div<i16>>
167 <&'a i32 as Div<i32>>
168 <&'a i64 as Div<i64>>
170 <&'a isize as Div<isize>>
172 help: consider using a floating-point literal by writing it with `.0`
177 error: aborting due to 8 previous errors
179 For more information about this error, try `rustc --explain E0277`.