]> git.lizzy.rs Git - rust.git/blob - src/test/ui/numbers-arithmetic/not-suggest-float-literal.stderr
Auto merge of #101893 - oli-obk:lift_derive, r=lcnr
[rust.git] / src / test / ui / numbers-arithmetic / not-suggest-float-literal.stderr
1 error[E0277]: cannot add `{float}` to `u8`
2   --> $DIR/not-suggest-float-literal.rs:2:7
3    |
4 LL |     x + 100.0
5    |       ^ no implementation for `u8 + {float}`
6    |
7    = help: the trait `Add<{float}>` is not implemented for `u8`
8    = help: the following other types implement trait `Add<Rhs>`:
9              <&'a f32 as Add<f32>>
10              <&'a f64 as Add<f64>>
11              <&'a i128 as Add<i128>>
12              <&'a i16 as Add<i16>>
13              <&'a i32 as Add<i32>>
14              <&'a i64 as Add<i64>>
15              <&'a i8 as Add<i8>>
16              <&'a isize as Add<isize>>
17            and 48 others
18
19 error[E0277]: cannot add `&str` to `f64`
20   --> $DIR/not-suggest-float-literal.rs:6:7
21    |
22 LL |     x + "foo"
23    |       ^ no implementation for `f64 + &str`
24    |
25    = help: the trait `Add<&str>` is not implemented for `f64`
26    = help: the following other types implement trait `Add<Rhs>`:
27              <&'a f32 as Add<f32>>
28              <&'a f64 as Add<f64>>
29              <&'a i128 as Add<i128>>
30              <&'a i16 as Add<i16>>
31              <&'a i32 as Add<i32>>
32              <&'a i64 as Add<i64>>
33              <&'a i8 as Add<i8>>
34              <&'a isize as Add<isize>>
35            and 48 others
36
37 error[E0277]: cannot add `{integer}` to `f64`
38   --> $DIR/not-suggest-float-literal.rs:11:7
39    |
40 LL |     x + y
41    |       ^ no implementation for `f64 + {integer}`
42    |
43    = help: the trait `Add<{integer}>` is not implemented for `f64`
44    = help: the following other types implement trait `Add<Rhs>`:
45              <&'a f32 as Add<f32>>
46              <&'a f64 as Add<f64>>
47              <&'a i128 as Add<i128>>
48              <&'a i16 as Add<i16>>
49              <&'a i32 as Add<i32>>
50              <&'a i64 as Add<i64>>
51              <&'a i8 as Add<i8>>
52              <&'a isize as Add<isize>>
53            and 48 others
54
55 error[E0277]: cannot subtract `{float}` from `u8`
56   --> $DIR/not-suggest-float-literal.rs:15:7
57    |
58 LL |     x - 100.0
59    |       ^ no implementation for `u8 - {float}`
60    |
61    = help: the trait `Sub<{float}>` is not implemented for `u8`
62    = help: the following other types implement trait `Sub<Rhs>`:
63              <&'a f32 as Sub<f32>>
64              <&'a f64 as Sub<f64>>
65              <&'a i128 as Sub<i128>>
66              <&'a i16 as Sub<i16>>
67              <&'a i32 as Sub<i32>>
68              <&'a i64 as Sub<i64>>
69              <&'a i8 as Sub<i8>>
70              <&'a isize as Sub<isize>>
71            and 48 others
72
73 error[E0277]: cannot subtract `&str` from `f64`
74   --> $DIR/not-suggest-float-literal.rs:19:7
75    |
76 LL |     x - "foo"
77    |       ^ no implementation for `f64 - &str`
78    |
79    = help: the trait `Sub<&str>` is not implemented for `f64`
80    = help: the following other types implement trait `Sub<Rhs>`:
81              <&'a f32 as Sub<f32>>
82              <&'a f64 as Sub<f64>>
83              <&'a i128 as Sub<i128>>
84              <&'a i16 as Sub<i16>>
85              <&'a i32 as Sub<i32>>
86              <&'a i64 as Sub<i64>>
87              <&'a i8 as Sub<i8>>
88              <&'a isize as Sub<isize>>
89            and 48 others
90
91 error[E0277]: cannot subtract `{integer}` from `f64`
92   --> $DIR/not-suggest-float-literal.rs:24:7
93    |
94 LL |     x - y
95    |       ^ no implementation for `f64 - {integer}`
96    |
97    = help: the trait `Sub<{integer}>` is not implemented for `f64`
98    = help: the following other types implement trait `Sub<Rhs>`:
99              <&'a f32 as Sub<f32>>
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>>
105              <&'a i8 as Sub<i8>>
106              <&'a isize as Sub<isize>>
107            and 48 others
108
109 error[E0277]: cannot multiply `u8` by `{float}`
110   --> $DIR/not-suggest-float-literal.rs:28:7
111    |
112 LL |     x * 100.0
113    |       ^ no implementation for `u8 * {float}`
114    |
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>>
123              <&'a i8 as Mul<i8>>
124              <&'a isize as Mul<isize>>
125            and 49 others
126
127 error[E0277]: cannot multiply `f64` by `&str`
128   --> $DIR/not-suggest-float-literal.rs:32:7
129    |
130 LL |     x * "foo"
131    |       ^ no implementation for `f64 * &str`
132    |
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>>
141              <&'a i8 as Mul<i8>>
142              <&'a isize as Mul<isize>>
143            and 49 others
144
145 error[E0277]: cannot multiply `f64` by `{integer}`
146   --> $DIR/not-suggest-float-literal.rs:37:7
147    |
148 LL |     x * y
149    |       ^ no implementation for `f64 * {integer}`
150    |
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>>
159              <&'a i8 as Mul<i8>>
160              <&'a isize as Mul<isize>>
161            and 49 others
162
163 error[E0277]: cannot divide `u8` by `{float}`
164   --> $DIR/not-suggest-float-literal.rs:41:7
165    |
166 LL |     x / 100.0
167    |       ^ no implementation for `u8 / {float}`
168    |
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>>
177              <&'a i8 as Div<i8>>
178              <&'a isize as Div<isize>>
179            and 54 others
180
181 error[E0277]: cannot divide `f64` by `&str`
182   --> $DIR/not-suggest-float-literal.rs:45:7
183    |
184 LL |     x / "foo"
185    |       ^ no implementation for `f64 / &str`
186    |
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>>
195              <&'a i8 as Div<i8>>
196              <&'a isize as Div<isize>>
197            and 54 others
198
199 error[E0277]: cannot divide `f64` by `{integer}`
200   --> $DIR/not-suggest-float-literal.rs:50:7
201    |
202 LL |     x / y
203    |       ^ no implementation for `f64 / {integer}`
204    |
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>>
213              <&'a i8 as Div<i8>>
214              <&'a isize as Div<isize>>
215            and 54 others
216
217 error: aborting due to 12 previous errors
218
219 For more information about this error, try `rustc --explain E0277`.