mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-03 09:38:53 +00:00
```
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`
```
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
error[E0277]: the trait bound `(): Foo` is not satisfied
|
|
--> $DIR/trait-failure.rs:9:17
|
|
|
|
|
LL | let x: impl Foo = W(());
|
|
| ^^^ the trait `Foo` is not implemented for `()`
|
|
|
|
|
help: the trait `Foo` is implemented for `W<T>`
|
|
--> $DIR/trait-failure.rs:6:1
|
|
|
|
|
LL | impl<T> Foo for W<T> where T: Foo {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
note: required for `W<()>` to implement `Foo`
|
|
--> $DIR/trait-failure.rs:6:9
|
|
|
|
|
LL | impl<T> Foo for W<T> where T: Foo {}
|
|
| ^^^ ^^^^ --- unsatisfied trait bound introduced here
|
|
|
|
error[E0277]: the trait bound `(): Foo` is not satisfied
|
|
--> $DIR/trait-failure.rs:11:19
|
|
|
|
|
LL | let x: W<impl Foo> = W(());
|
|
| ^^^ the trait `Foo` is not implemented for `()`
|
|
|
|
|
help: the trait `Foo` is implemented for `W<T>`
|
|
--> $DIR/trait-failure.rs:6:1
|
|
|
|
|
LL | impl<T> Foo for W<T> where T: Foo {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|