2022-02-17 04:33:32 -06:00
|
|
|
error[E0277]: cannot add `{float}` to `u8`
|
|
|
|
--> $DIR/not-suggest-float-literal.rs:2:7
|
|
|
|
|
|
|
|
|
LL | x + 100.0
|
|
|
|
| ^ no implementation for `u8 + {float}`
|
|
|
|
|
|
|
|
|
= help: the trait `Add<{float}>` is not implemented for `u8`
|
2022-03-26 21:02:07 -05:00
|
|
|
= help: the following other types implement trait `Add<Rhs>`:
|
2022-12-05 16:24:48 -06:00
|
|
|
<&'a u8 as Add<u8>>
|
|
|
|
<&u8 as Add<&u8>>
|
|
|
|
<u8 as Add<&u8>>
|
|
|
|
<u8 as Add>
|
2022-02-17 04:33:32 -06:00
|
|
|
|
|
|
|
error[E0277]: cannot add `&str` to `f64`
|
|
|
|
--> $DIR/not-suggest-float-literal.rs:6:7
|
|
|
|
|
|
|
|
|
LL | x + "foo"
|
|
|
|
| ^ no implementation for `f64 + &str`
|
|
|
|
|
|
|
|
|
= help: the trait `Add<&str>` is not implemented for `f64`
|
2022-03-26 21:02:07 -05:00
|
|
|
= help: the following other types implement trait `Add<Rhs>`:
|
2022-03-26 20:49:01 -05:00
|
|
|
<&'a f64 as Add<f64>>
|
2022-12-05 16:24:48 -06:00
|
|
|
<&f64 as Add<&f64>>
|
|
|
|
<f64 as Add<&f64>>
|
|
|
|
<f64 as Add>
|
2022-02-17 04:33:32 -06:00
|
|
|
|
|
|
|
error[E0277]: cannot add `{integer}` to `f64`
|
|
|
|
--> $DIR/not-suggest-float-literal.rs:11:7
|
|
|
|
|
|
|
|
|
LL | x + y
|
|
|
|
| ^ no implementation for `f64 + {integer}`
|
|
|
|
|
|
|
|
|
= help: the trait `Add<{integer}>` is not implemented for `f64`
|
2022-03-26 21:02:07 -05:00
|
|
|
= help: the following other types implement trait `Add<Rhs>`:
|
2022-03-26 20:49:01 -05:00
|
|
|
<&'a f64 as Add<f64>>
|
2022-12-05 16:24:48 -06:00
|
|
|
<&f64 as Add<&f64>>
|
|
|
|
<f64 as Add<&f64>>
|
|
|
|
<f64 as Add>
|
2022-02-17 04:33:32 -06:00
|
|
|
|
|
|
|
error[E0277]: cannot subtract `{float}` from `u8`
|
|
|
|
--> $DIR/not-suggest-float-literal.rs:15:7
|
|
|
|
|
|
|
|
|
LL | x - 100.0
|
|
|
|
| ^ no implementation for `u8 - {float}`
|
|
|
|
|
|
|
|
|
= help: the trait `Sub<{float}>` is not implemented for `u8`
|
2022-03-26 21:02:07 -05:00
|
|
|
= help: the following other types implement trait `Sub<Rhs>`:
|
2022-12-05 16:24:48 -06:00
|
|
|
<&'a u8 as Sub<u8>>
|
|
|
|
<&u8 as Sub<&u8>>
|
|
|
|
<u8 as Sub<&u8>>
|
|
|
|
<u8 as Sub>
|
2022-02-17 04:33:32 -06:00
|
|
|
|
|
|
|
error[E0277]: cannot subtract `&str` from `f64`
|
|
|
|
--> $DIR/not-suggest-float-literal.rs:19:7
|
|
|
|
|
|
|
|
|
LL | x - "foo"
|
|
|
|
| ^ no implementation for `f64 - &str`
|
|
|
|
|
|
|
|
|
= help: the trait `Sub<&str>` is not implemented for `f64`
|
2022-03-26 21:02:07 -05:00
|
|
|
= help: the following other types implement trait `Sub<Rhs>`:
|
2022-03-26 20:49:01 -05:00
|
|
|
<&'a f64 as Sub<f64>>
|
2022-12-05 16:24:48 -06:00
|
|
|
<&f64 as Sub<&f64>>
|
|
|
|
<f64 as Sub<&f64>>
|
|
|
|
<f64 as Sub>
|
2022-02-17 04:33:32 -06:00
|
|
|
|
|
|
|
error[E0277]: cannot subtract `{integer}` from `f64`
|
|
|
|
--> $DIR/not-suggest-float-literal.rs:24:7
|
|
|
|
|
|
|
|
|
LL | x - y
|
|
|
|
| ^ no implementation for `f64 - {integer}`
|
|
|
|
|
|
|
|
|
= help: the trait `Sub<{integer}>` is not implemented for `f64`
|
2022-03-26 21:02:07 -05:00
|
|
|
= help: the following other types implement trait `Sub<Rhs>`:
|
2022-03-26 20:49:01 -05:00
|
|
|
<&'a f64 as Sub<f64>>
|
2022-12-05 16:24:48 -06:00
|
|
|
<&f64 as Sub<&f64>>
|
|
|
|
<f64 as Sub<&f64>>
|
|
|
|
<f64 as Sub>
|
2022-02-17 04:33:32 -06:00
|
|
|
|
|
|
|
error[E0277]: cannot multiply `u8` by `{float}`
|
|
|
|
--> $DIR/not-suggest-float-literal.rs:28:7
|
|
|
|
|
|
|
|
|
LL | x * 100.0
|
|
|
|
| ^ no implementation for `u8 * {float}`
|
|
|
|
|
|
|
|
|
= help: the trait `Mul<{float}>` is not implemented for `u8`
|
2022-03-26 21:02:07 -05:00
|
|
|
= help: the following other types implement trait `Mul<Rhs>`:
|
2022-12-05 16:24:48 -06:00
|
|
|
<&'a u8 as Mul<u8>>
|
|
|
|
<&u8 as Mul<&u8>>
|
|
|
|
<u8 as Mul<&u8>>
|
|
|
|
<u8 as Mul>
|
2022-02-17 04:33:32 -06:00
|
|
|
|
|
|
|
error[E0277]: cannot multiply `f64` by `&str`
|
|
|
|
--> $DIR/not-suggest-float-literal.rs:32:7
|
|
|
|
|
|
|
|
|
LL | x * "foo"
|
|
|
|
| ^ no implementation for `f64 * &str`
|
|
|
|
|
|
|
|
|
= help: the trait `Mul<&str>` is not implemented for `f64`
|
2022-03-26 21:02:07 -05:00
|
|
|
= help: the following other types implement trait `Mul<Rhs>`:
|
2022-03-26 20:49:01 -05:00
|
|
|
<&'a f64 as Mul<f64>>
|
2022-12-05 16:24:48 -06:00
|
|
|
<&f64 as Mul<&f64>>
|
|
|
|
<f64 as Mul<&f64>>
|
|
|
|
<f64 as Mul>
|
2022-02-17 04:33:32 -06:00
|
|
|
|
|
|
|
error[E0277]: cannot multiply `f64` by `{integer}`
|
|
|
|
--> $DIR/not-suggest-float-literal.rs:37:7
|
|
|
|
|
|
|
|
|
LL | x * y
|
|
|
|
| ^ no implementation for `f64 * {integer}`
|
|
|
|
|
|
|
|
|
= help: the trait `Mul<{integer}>` is not implemented for `f64`
|
2022-03-26 21:02:07 -05:00
|
|
|
= help: the following other types implement trait `Mul<Rhs>`:
|
2022-03-26 20:49:01 -05:00
|
|
|
<&'a f64 as Mul<f64>>
|
2022-12-05 16:24:48 -06:00
|
|
|
<&f64 as Mul<&f64>>
|
|
|
|
<f64 as Mul<&f64>>
|
|
|
|
<f64 as Mul>
|
2022-02-17 04:33:32 -06:00
|
|
|
|
|
|
|
error[E0277]: cannot divide `u8` by `{float}`
|
|
|
|
--> $DIR/not-suggest-float-literal.rs:41:7
|
|
|
|
|
|
|
|
|
LL | x / 100.0
|
|
|
|
| ^ no implementation for `u8 / {float}`
|
|
|
|
|
|
|
|
|
= help: the trait `Div<{float}>` is not implemented for `u8`
|
2022-03-26 21:02:07 -05:00
|
|
|
= help: the following other types implement trait `Div<Rhs>`:
|
2022-12-05 16:24:48 -06:00
|
|
|
<&'a u8 as Div<u8>>
|
|
|
|
<&u8 as Div<&u8>>
|
|
|
|
<u8 as Div<&u8>>
|
|
|
|
<u8 as Div<NonZeroU8>>
|
|
|
|
<u8 as Div>
|
2022-02-17 04:33:32 -06:00
|
|
|
|
|
|
|
error[E0277]: cannot divide `f64` by `&str`
|
|
|
|
--> $DIR/not-suggest-float-literal.rs:45:7
|
|
|
|
|
|
|
|
|
LL | x / "foo"
|
|
|
|
| ^ no implementation for `f64 / &str`
|
|
|
|
|
|
|
|
|
= help: the trait `Div<&str>` is not implemented for `f64`
|
2022-03-26 21:02:07 -05:00
|
|
|
= help: the following other types implement trait `Div<Rhs>`:
|
2022-03-26 20:49:01 -05:00
|
|
|
<&'a f64 as Div<f64>>
|
2022-12-05 16:24:48 -06:00
|
|
|
<&f64 as Div<&f64>>
|
|
|
|
<f64 as Div<&f64>>
|
|
|
|
<f64 as Div>
|
2022-02-17 04:33:32 -06:00
|
|
|
|
|
|
|
error[E0277]: cannot divide `f64` by `{integer}`
|
|
|
|
--> $DIR/not-suggest-float-literal.rs:50:7
|
|
|
|
|
|
|
|
|
LL | x / y
|
|
|
|
| ^ no implementation for `f64 / {integer}`
|
|
|
|
|
|
|
|
|
= help: the trait `Div<{integer}>` is not implemented for `f64`
|
2022-03-26 21:02:07 -05:00
|
|
|
= help: the following other types implement trait `Div<Rhs>`:
|
2022-03-26 20:49:01 -05:00
|
|
|
<&'a f64 as Div<f64>>
|
2022-12-05 16:24:48 -06:00
|
|
|
<&f64 as Div<&f64>>
|
|
|
|
<f64 as Div<&f64>>
|
|
|
|
<f64 as Div>
|
2022-02-17 04:33:32 -06:00
|
|
|
|
|
|
|
error: aborting due to 12 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|