```
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`
```
32 lines
1.3 KiB
Text
32 lines
1.3 KiB
Text
error[E0277]: the trait bound `[bool]: Copy` is not satisfied
|
|
--> $DIR/ice-unsized-struct-arg-issue2-121424.rs:5:22
|
|
|
|
|
LL | const MYSLICE_GOOD: &MySliceBool = &MySlice(true, [false]);
|
|
| ^^^^^^^^^^^ the trait `Copy` is not implemented for `[bool]`
|
|
|
|
|
help: the trait `Copy` is implemented for `[T; N]`
|
|
--> $SRC_DIR/core/src/array/mod.rs:LL:COL
|
|
note: required by a bound in `MySlice`
|
|
--> $DIR/ice-unsized-struct-arg-issue2-121424.rs:3:19
|
|
|
|
|
LL | struct MySlice<T: Copy>(bool, T);
|
|
| ^^^^ required by this bound in `MySlice`
|
|
|
|
error[E0277]: the trait bound `[bool]: Copy` is not satisfied
|
|
--> $DIR/ice-unsized-struct-arg-issue2-121424.rs:5:22
|
|
|
|
|
LL | const MYSLICE_GOOD: &MySliceBool = &MySlice(true, [false]);
|
|
| ^^^^^^^^^^^ the trait `Copy` is not implemented for `[bool]`
|
|
|
|
|
help: the trait `Copy` is implemented for `[T; N]`
|
|
--> $SRC_DIR/core/src/array/mod.rs:LL:COL
|
|
note: required by a bound in `MySlice`
|
|
--> $DIR/ice-unsized-struct-arg-issue2-121424.rs:3:19
|
|
|
|
|
LL | struct MySlice<T: Copy>(bool, T);
|
|
| ^^^^ required by this bound in `MySlice`
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|