36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
error[E0277]: the trait bound `Q: T3` is not satisfied
|
|
--> $DIR/blame-trait-error.rs:24:46
|
|
|
|
|
LL | want(Wrapper { value: Burrito { filling: q } });
|
|
| ---- ^ the trait `T3` is not implemented for `Q`
|
|
| |
|
|
| required by a bound introduced by this call
|
|
|
|
|
note: required for `Burrito<Q>` to implement `T2`
|
|
--> $DIR/blame-trait-error.rs:11:13
|
|
|
|
|
LL | impl<A: T3> T2 for Burrito<A> {}
|
|
| -- ^^ ^^^^^^^^^^
|
|
| |
|
|
| unsatisfied trait bound introduced here
|
|
note: required for `Wrapper<Burrito<Q>>` to implement `T1`
|
|
--> $DIR/blame-trait-error.rs:6:13
|
|
|
|
|
LL | impl<B: T2> T1 for Wrapper<B> {}
|
|
| -- ^^ ^^^^^^^^^^
|
|
| |
|
|
| unsatisfied trait bound introduced here
|
|
note: required by a bound in `want`
|
|
--> $DIR/blame-trait-error.rs:21:12
|
|
|
|
|
LL | fn want<V: T1>(_x: V) {}
|
|
| ^^ required by this bound in `want`
|
|
help: consider restricting type parameter `Q`
|
|
|
|
|
LL | fn example<Q: T3>(q: Q) {
|
|
| ++++
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|