1 error[E0277]: cannot add `{float}` to `u8`
2 --> $DIR/not-suggest-float-literal.rs:2:7
5 | ^ no implementation for `u8 + {float}`
7 = help: the trait `Add<{float}>` is not implemented for `u8`
8 = help: the following other types implement trait `Add<Rhs>`:
11 <&'a i128 as Add<i128>>
16 <&'a isize as Add<isize>>
19 error[E0277]: cannot add `&str` to `f64`
20 --> $DIR/not-suggest-float-literal.rs:6:7
23 | ^ no implementation for `f64 + &str`
25 = help: the trait `Add<&str>` is not implemented for `f64`
26 = help: the following other types implement trait `Add<Rhs>`:
29 <&'a i128 as Add<i128>>
34 <&'a isize as Add<isize>>
37 error[E0277]: cannot add `{integer}` to `f64`
38 --> $DIR/not-suggest-float-literal.rs:11:7
41 | ^ no implementation for `f64 + {integer}`
43 = help: the trait `Add<{integer}>` is not implemented for `f64`
44 = help: the following other types implement trait `Add<Rhs>`:
47 <&'a i128 as Add<i128>>
52 <&'a isize as Add<isize>>
55 error[E0277]: cannot subtract `{float}` from `u8`
56 --> $DIR/not-suggest-float-literal.rs:15:7
59 | ^ no implementation for `u8 - {float}`
61 = help: the trait `Sub<{float}>` is not implemented for `u8`
62 = help: the following other types implement trait `Sub<Rhs>`:
65 <&'a i128 as Sub<i128>>
70 <&'a isize as Sub<isize>>
73 error[E0277]: cannot subtract `&str` from `f64`
74 --> $DIR/not-suggest-float-literal.rs:19:7
77 | ^ no implementation for `f64 - &str`
79 = help: the trait `Sub<&str>` is not implemented for `f64`
80 = help: the following other types implement trait `Sub<Rhs>`:
83 <&'a i128 as Sub<i128>>
88 <&'a isize as Sub<isize>>
91 error[E0277]: cannot subtract `{integer}` from `f64`
92 --> $DIR/not-suggest-float-literal.rs:24:7
95 | ^ no implementation for `f64 - {integer}`
97 = help: the trait `Sub<{integer}>` is not implemented for `f64`
98 = help: the following other types implement trait `Sub<Rhs>`:
100 <&'a f64 as Sub<f64>>
101 <&'a i128 as Sub<i128>>
102 <&'a i16 as Sub<i16>>
103 <&'a i32 as Sub<i32>>
104 <&'a i64 as Sub<i64>>
106 <&'a isize as Sub<isize>>
109 error[E0277]: cannot multiply `u8` by `{float}`
110 --> $DIR/not-suggest-float-literal.rs:28:7
113 | ^ no implementation for `u8 * {float}`
115 = help: the trait `Mul<{float}>` is not implemented for `u8`
116 = help: the following other types implement trait `Mul<Rhs>`:
117 <&'a f32 as Mul<f32>>
118 <&'a f64 as Mul<f64>>
119 <&'a i128 as Mul<i128>>
120 <&'a i16 as Mul<i16>>
121 <&'a i32 as Mul<i32>>
122 <&'a i64 as Mul<i64>>
124 <&'a isize as Mul<isize>>
127 error[E0277]: cannot multiply `f64` by `&str`
128 --> $DIR/not-suggest-float-literal.rs:32:7
131 | ^ no implementation for `f64 * &str`
133 = help: the trait `Mul<&str>` is not implemented for `f64`
134 = help: the following other types implement trait `Mul<Rhs>`:
135 <&'a f32 as Mul<f32>>
136 <&'a f64 as Mul<f64>>
137 <&'a i128 as Mul<i128>>
138 <&'a i16 as Mul<i16>>
139 <&'a i32 as Mul<i32>>
140 <&'a i64 as Mul<i64>>
142 <&'a isize as Mul<isize>>
145 error[E0277]: cannot multiply `f64` by `{integer}`
146 --> $DIR/not-suggest-float-literal.rs:37:7
149 | ^ no implementation for `f64 * {integer}`
151 = help: the trait `Mul<{integer}>` is not implemented for `f64`
152 = help: the following other types implement trait `Mul<Rhs>`:
153 <&'a f32 as Mul<f32>>
154 <&'a f64 as Mul<f64>>
155 <&'a i128 as Mul<i128>>
156 <&'a i16 as Mul<i16>>
157 <&'a i32 as Mul<i32>>
158 <&'a i64 as Mul<i64>>
160 <&'a isize as Mul<isize>>
163 error[E0277]: cannot divide `u8` by `{float}`
164 --> $DIR/not-suggest-float-literal.rs:41:7
167 | ^ no implementation for `u8 / {float}`
169 = help: the trait `Div<{float}>` is not implemented for `u8`
170 = help: the following other types implement trait `Div<Rhs>`:
171 <&'a f32 as Div<f32>>
172 <&'a f64 as Div<f64>>
173 <&'a i128 as Div<i128>>
174 <&'a i16 as Div<i16>>
175 <&'a i32 as Div<i32>>
176 <&'a i64 as Div<i64>>
178 <&'a isize as Div<isize>>
181 error[E0277]: cannot divide `f64` by `&str`
182 --> $DIR/not-suggest-float-literal.rs:45:7
185 | ^ no implementation for `f64 / &str`
187 = help: the trait `Div<&str>` is not implemented for `f64`
188 = help: the following other types implement trait `Div<Rhs>`:
189 <&'a f32 as Div<f32>>
190 <&'a f64 as Div<f64>>
191 <&'a i128 as Div<i128>>
192 <&'a i16 as Div<i16>>
193 <&'a i32 as Div<i32>>
194 <&'a i64 as Div<i64>>
196 <&'a isize as Div<isize>>
199 error[E0277]: cannot divide `f64` by `{integer}`
200 --> $DIR/not-suggest-float-literal.rs:50:7
203 | ^ no implementation for `f64 / {integer}`
205 = help: the trait `Div<{integer}>` is not implemented for `f64`
206 = help: the following other types implement trait `Div<Rhs>`:
207 <&'a f32 as Div<f32>>
208 <&'a f64 as Div<f64>>
209 <&'a i128 as Div<i128>>
210 <&'a i16 as Div<i16>>
211 <&'a i32 as Div<i32>>
212 <&'a i64 as Div<i64>>
214 <&'a isize as Div<isize>>
217 error: aborting due to 12 previous errors
219 For more information about this error, try `rustc --explain E0277`.