```
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`
```
29 lines
977 B
Text
29 lines
977 B
Text
error[E0308]: mismatched types
|
|
--> $DIR/const-eval-overflow-3b.rs:16:22
|
|
|
|
|
LL | = [0; (i8::MAX + 1u8) as usize];
|
|
| ^^^ expected `i8`, found `u8`
|
|
|
|
error[E0277]: cannot add `u8` to `i8`
|
|
--> $DIR/const-eval-overflow-3b.rs:16:20
|
|
|
|
|
LL | = [0; (i8::MAX + 1u8) as usize];
|
|
| ^ no implementation for `i8 + u8`
|
|
|
|
|
= help: the trait `Add<u8>` is not implemented for `i8`
|
|
help: the following other types implement trait `Add<Rhs>`
|
|
--> $SRC_DIR/core/src/ops/arith.rs:LL:COL
|
|
|
|
|
= note: `&i8` implements `Add<i8>`
|
|
|
|
|
= note: `&i8` implements `Add`
|
|
|
|
|
= note: `i8` implements `Add<&i8>`
|
|
|
|
|
= note: `i8` implements `Add`
|
|
= note: this error originates in the macro `add_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
Some errors have detailed explanations: E0277, E0308.
|
|
For more information about an error, try `rustc --explain E0277`.
|