```
error[E0277]: the trait bound `[[u16; 3]; 2]: Bar` is not satisfied
--> $DIR/issue-67185-2.rs:21:6
|
LL | impl Foo for FooImpl {}
| ^^^ the trait `Bar` is not implemented for `[[u16; 3]; 2]`
|
help: the following other types implement trait `Bar`
--> $DIR/issue-67185-2.rs:9:1
|
LL | impl Bar for [u16; 4] {}
| ^^^^^^^^^^^^^^^^^^^^^ `[u16; 4]`
LL | impl Bar for [[u16; 3]; 3] {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ `[[u16; 3]; 3]`
note: required by a bound in `Foo`
--> $DIR/issue-67185-2.rs:14:30
|
LL | trait Foo
| --- required by a bound in this trait
LL | where
LL | [<u8 as Baz>::Quaks; 2]: Bar,
| ^^^ required by this bound in `Foo`
```
226 lines
7.3 KiB
Text
226 lines
7.3 KiB
Text
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`
|
|
help: the following other types implement trait `Add<Rhs>`
|
|
--> $SRC_DIR/core/src/ops/arith.rs:LL:COL
|
|
|
|
|
= note: `&u8` implements `Add<u8>`
|
|
|
|
|
= note: `&u8` implements `Add`
|
|
|
|
|
= note: `u8` implements `Add<&u8>`
|
|
|
|
|
= note: `u8` implements `Add`
|
|
= note: this error originates in the macro `add_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
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`
|
|
help: the following other types implement trait `Add<Rhs>`
|
|
--> $SRC_DIR/core/src/ops/arith.rs:LL:COL
|
|
|
|
|
= note: `&f64` implements `Add<f64>`
|
|
|
|
|
= note: `&f64` implements `Add`
|
|
|
|
|
= note: `f64` implements `Add<&f64>`
|
|
|
|
|
= note: `f64` implements `Add`
|
|
= note: this error originates in the macro `add_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
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`
|
|
help: the following other types implement trait `Add<Rhs>`
|
|
--> $SRC_DIR/core/src/ops/arith.rs:LL:COL
|
|
|
|
|
= note: `&f64` implements `Add<f64>`
|
|
|
|
|
= note: `&f64` implements `Add`
|
|
|
|
|
= note: `f64` implements `Add<&f64>`
|
|
|
|
|
= note: `f64` implements `Add`
|
|
= note: this error originates in the macro `add_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
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`
|
|
help: the following other types implement trait `Sub<Rhs>`
|
|
--> $SRC_DIR/core/src/ops/arith.rs:LL:COL
|
|
|
|
|
= note: `&u8` implements `Sub<u8>`
|
|
|
|
|
= note: `&u8` implements `Sub`
|
|
|
|
|
= note: `u8` implements `Sub<&u8>`
|
|
|
|
|
= note: `u8` implements `Sub`
|
|
= note: this error originates in the macro `sub_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
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`
|
|
help: the following other types implement trait `Sub<Rhs>`
|
|
--> $SRC_DIR/core/src/ops/arith.rs:LL:COL
|
|
|
|
|
= note: `&f64` implements `Sub<f64>`
|
|
|
|
|
= note: `&f64` implements `Sub`
|
|
|
|
|
= note: `f64` implements `Sub<&f64>`
|
|
|
|
|
= note: `f64` implements `Sub`
|
|
= note: this error originates in the macro `sub_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
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`
|
|
help: the following other types implement trait `Sub<Rhs>`
|
|
--> $SRC_DIR/core/src/ops/arith.rs:LL:COL
|
|
|
|
|
= note: `&f64` implements `Sub<f64>`
|
|
|
|
|
= note: `&f64` implements `Sub`
|
|
|
|
|
= note: `f64` implements `Sub<&f64>`
|
|
|
|
|
= note: `f64` implements `Sub`
|
|
= note: this error originates in the macro `sub_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
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`
|
|
help: the following other types implement trait `Mul<Rhs>`
|
|
--> $SRC_DIR/core/src/ops/arith.rs:LL:COL
|
|
|
|
|
= note: `&u8` implements `Mul<u8>`
|
|
|
|
|
= note: `&u8` implements `Mul`
|
|
|
|
|
= note: `u8` implements `Mul<&u8>`
|
|
|
|
|
= note: `u8` implements `Mul`
|
|
= note: this error originates in the macro `mul_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
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`
|
|
help: the following other types implement trait `Mul<Rhs>`
|
|
--> $SRC_DIR/core/src/ops/arith.rs:LL:COL
|
|
|
|
|
= note: `&f64` implements `Mul<f64>`
|
|
|
|
|
= note: `&f64` implements `Mul`
|
|
|
|
|
= note: `f64` implements `Mul<&f64>`
|
|
|
|
|
= note: `f64` implements `Mul`
|
|
= note: this error originates in the macro `mul_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
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`
|
|
help: the following other types implement trait `Mul<Rhs>`
|
|
--> $SRC_DIR/core/src/ops/arith.rs:LL:COL
|
|
|
|
|
= note: `&f64` implements `Mul<f64>`
|
|
|
|
|
= note: `&f64` implements `Mul`
|
|
|
|
|
= note: `f64` implements `Mul<&f64>`
|
|
|
|
|
= note: `f64` implements `Mul`
|
|
= note: this error originates in the macro `mul_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
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`
|
|
= help: the following other types implement trait `Div<Rhs>`:
|
|
`&u8` implements `Div<u8>`
|
|
`&u8` implements `Div`
|
|
`u8` implements `Div<&u8>`
|
|
`u8` implements `Div<NonZero<u8>>`
|
|
`u8` implements `Div`
|
|
|
|
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`
|
|
help: the following other types implement trait `Div<Rhs>`
|
|
--> $SRC_DIR/core/src/ops/arith.rs:LL:COL
|
|
|
|
|
= note: `&f64` implements `Div<f64>`
|
|
|
|
|
= note: `&f64` implements `Div`
|
|
|
|
|
= note: `f64` implements `Div<&f64>`
|
|
|
|
|
= note: `f64` implements `Div`
|
|
= note: this error originates in the macro `div_impl_float` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
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`
|
|
help: the following other types implement trait `Div<Rhs>`
|
|
--> $SRC_DIR/core/src/ops/arith.rs:LL:COL
|
|
|
|
|
= note: `&f64` implements `Div<f64>`
|
|
|
|
|
= note: `&f64` implements `Div`
|
|
|
|
|
= note: `f64` implements `Div<&f64>`
|
|
|
|
|
= note: `f64` implements `Div`
|
|
= note: this error originates in the macro `div_impl_float` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: aborting due to 12 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|