]>
Commit | Line | Data |
---|---|---|
5e7ed085 FG |
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` | |
04454e1e | 8 | = help: the following other types implement trait `Add<Rhs>`: |
487cf647 FG |
9 | <&'a u8 as Add<u8>> |
10 | <&u8 as Add<&u8>> | |
11 | <u8 as Add<&u8>> | |
12 | <u8 as Add> | |
5e7ed085 FG |
13 | |
14 | error[E0277]: cannot add `&str` to `f64` | |
15 | --> $DIR/not-suggest-float-literal.rs:6:7 | |
16 | | | |
17 | LL | x + "foo" | |
18 | | ^ no implementation for `f64 + &str` | |
19 | | | |
20 | = help: the trait `Add<&str>` is not implemented for `f64` | |
04454e1e | 21 | = help: the following other types implement trait `Add<Rhs>`: |
04454e1e | 22 | <&'a f64 as Add<f64>> |
487cf647 FG |
23 | <&f64 as Add<&f64>> |
24 | <f64 as Add<&f64>> | |
25 | <f64 as Add> | |
5e7ed085 FG |
26 | |
27 | error[E0277]: cannot add `{integer}` to `f64` | |
28 | --> $DIR/not-suggest-float-literal.rs:11:7 | |
29 | | | |
30 | LL | x + y | |
31 | | ^ no implementation for `f64 + {integer}` | |
32 | | | |
33 | = help: the trait `Add<{integer}>` is not implemented for `f64` | |
04454e1e | 34 | = help: the following other types implement trait `Add<Rhs>`: |
04454e1e | 35 | <&'a f64 as Add<f64>> |
487cf647 FG |
36 | <&f64 as Add<&f64>> |
37 | <f64 as Add<&f64>> | |
38 | <f64 as Add> | |
5e7ed085 FG |
39 | |
40 | error[E0277]: cannot subtract `{float}` from `u8` | |
41 | --> $DIR/not-suggest-float-literal.rs:15:7 | |
42 | | | |
43 | LL | x - 100.0 | |
44 | | ^ no implementation for `u8 - {float}` | |
45 | | | |
46 | = help: the trait `Sub<{float}>` is not implemented for `u8` | |
04454e1e | 47 | = help: the following other types implement trait `Sub<Rhs>`: |
487cf647 FG |
48 | <&'a u8 as Sub<u8>> |
49 | <&u8 as Sub<&u8>> | |
50 | <u8 as Sub<&u8>> | |
51 | <u8 as Sub> | |
5e7ed085 FG |
52 | |
53 | error[E0277]: cannot subtract `&str` from `f64` | |
54 | --> $DIR/not-suggest-float-literal.rs:19:7 | |
55 | | | |
56 | LL | x - "foo" | |
57 | | ^ no implementation for `f64 - &str` | |
58 | | | |
59 | = help: the trait `Sub<&str>` is not implemented for `f64` | |
04454e1e | 60 | = help: the following other types implement trait `Sub<Rhs>`: |
04454e1e | 61 | <&'a f64 as Sub<f64>> |
487cf647 FG |
62 | <&f64 as Sub<&f64>> |
63 | <f64 as Sub<&f64>> | |
64 | <f64 as Sub> | |
5e7ed085 FG |
65 | |
66 | error[E0277]: cannot subtract `{integer}` from `f64` | |
67 | --> $DIR/not-suggest-float-literal.rs:24:7 | |
68 | | | |
69 | LL | x - y | |
70 | | ^ no implementation for `f64 - {integer}` | |
71 | | | |
72 | = help: the trait `Sub<{integer}>` is not implemented for `f64` | |
04454e1e | 73 | = help: the following other types implement trait `Sub<Rhs>`: |
04454e1e | 74 | <&'a f64 as Sub<f64>> |
487cf647 FG |
75 | <&f64 as Sub<&f64>> |
76 | <f64 as Sub<&f64>> | |
77 | <f64 as Sub> | |
5e7ed085 FG |
78 | |
79 | error[E0277]: cannot multiply `u8` by `{float}` | |
80 | --> $DIR/not-suggest-float-literal.rs:28:7 | |
81 | | | |
82 | LL | x * 100.0 | |
83 | | ^ no implementation for `u8 * {float}` | |
84 | | | |
85 | = help: the trait `Mul<{float}>` is not implemented for `u8` | |
04454e1e | 86 | = help: the following other types implement trait `Mul<Rhs>`: |
487cf647 FG |
87 | <&'a u8 as Mul<u8>> |
88 | <&u8 as Mul<&u8>> | |
89 | <u8 as Mul<&u8>> | |
90 | <u8 as Mul> | |
5e7ed085 FG |
91 | |
92 | error[E0277]: cannot multiply `f64` by `&str` | |
93 | --> $DIR/not-suggest-float-literal.rs:32:7 | |
94 | | | |
95 | LL | x * "foo" | |
96 | | ^ no implementation for `f64 * &str` | |
97 | | | |
98 | = help: the trait `Mul<&str>` is not implemented for `f64` | |
04454e1e | 99 | = help: the following other types implement trait `Mul<Rhs>`: |
04454e1e | 100 | <&'a f64 as Mul<f64>> |
487cf647 FG |
101 | <&f64 as Mul<&f64>> |
102 | <f64 as Mul<&f64>> | |
103 | <f64 as Mul> | |
5e7ed085 FG |
104 | |
105 | error[E0277]: cannot multiply `f64` by `{integer}` | |
106 | --> $DIR/not-suggest-float-literal.rs:37:7 | |
107 | | | |
108 | LL | x * y | |
109 | | ^ no implementation for `f64 * {integer}` | |
110 | | | |
111 | = help: the trait `Mul<{integer}>` is not implemented for `f64` | |
04454e1e | 112 | = help: the following other types implement trait `Mul<Rhs>`: |
04454e1e | 113 | <&'a f64 as Mul<f64>> |
487cf647 FG |
114 | <&f64 as Mul<&f64>> |
115 | <f64 as Mul<&f64>> | |
116 | <f64 as Mul> | |
5e7ed085 FG |
117 | |
118 | error[E0277]: cannot divide `u8` by `{float}` | |
119 | --> $DIR/not-suggest-float-literal.rs:41:7 | |
120 | | | |
121 | LL | x / 100.0 | |
122 | | ^ no implementation for `u8 / {float}` | |
123 | | | |
124 | = help: the trait `Div<{float}>` is not implemented for `u8` | |
04454e1e | 125 | = help: the following other types implement trait `Div<Rhs>`: |
487cf647 FG |
126 | <&'a u8 as Div<u8>> |
127 | <&u8 as Div<&u8>> | |
128 | <u8 as Div<&u8>> | |
129 | <u8 as Div<NonZeroU8>> | |
130 | <u8 as Div> | |
5e7ed085 FG |
131 | |
132 | error[E0277]: cannot divide `f64` by `&str` | |
133 | --> $DIR/not-suggest-float-literal.rs:45:7 | |
134 | | | |
135 | LL | x / "foo" | |
136 | | ^ no implementation for `f64 / &str` | |
137 | | | |
138 | = help: the trait `Div<&str>` is not implemented for `f64` | |
04454e1e | 139 | = help: the following other types implement trait `Div<Rhs>`: |
04454e1e | 140 | <&'a f64 as Div<f64>> |
487cf647 FG |
141 | <&f64 as Div<&f64>> |
142 | <f64 as Div<&f64>> | |
143 | <f64 as Div> | |
5e7ed085 FG |
144 | |
145 | error[E0277]: cannot divide `f64` by `{integer}` | |
146 | --> $DIR/not-suggest-float-literal.rs:50:7 | |
147 | | | |
148 | LL | x / y | |
149 | | ^ no implementation for `f64 / {integer}` | |
150 | | | |
151 | = help: the trait `Div<{integer}>` is not implemented for `f64` | |
04454e1e | 152 | = help: the following other types implement trait `Div<Rhs>`: |
04454e1e | 153 | <&'a f64 as Div<f64>> |
487cf647 FG |
154 | <&f64 as Div<&f64>> |
155 | <f64 as Div<&f64>> | |
156 | <f64 as Div> | |
5e7ed085 FG |
157 | |
158 | error: aborting due to 12 previous errors | |
159 | ||
160 | For more information about this error, try `rustc --explain E0277`. |