]> git.lizzy.rs Git - rust.git/blob - tests/ui/errors/trait-bound-error-spans/blame-trait-error.stderr
Rollup merge of #107446 - clubby789:rustc-parse-diag-migrate, r=compiler-errors
[rust.git] / tests / ui / errors / trait-bound-error-spans / blame-trait-error.stderr
1 error[E0277]: the trait bound `Q: T3` is not satisfied
2   --> $DIR/blame-trait-error.rs:24:46
3    |
4 LL |     want(Wrapper { value: Burrito { filling: q } });
5    |     ----                                     ^ the trait `T3` is not implemented for `Q`
6    |     |
7    |     required by a bound introduced by this call
8    |
9 note: required for `Burrito<Q>` to implement `T2`
10   --> $DIR/blame-trait-error.rs:11:13
11    |
12 LL | impl<A: T3> T2 for Burrito<A> {}
13    |         --  ^^     ^^^^^^^^^^
14    |         |
15    |         unsatisfied trait bound introduced here
16 note: required for `Wrapper<Burrito<Q>>` to implement `T1`
17   --> $DIR/blame-trait-error.rs:6:13
18    |
19 LL | impl<B: T2> T1 for Wrapper<B> {}
20    |         --  ^^     ^^^^^^^^^^
21    |         |
22    |         unsatisfied trait bound introduced here
23 note: required by a bound in `want`
24   --> $DIR/blame-trait-error.rs:21:12
25    |
26 LL | fn want<V: T1>(_x: V) {}
27    |            ^^ required by this bound in `want`
28 help: consider restricting type parameter `Q`
29    |
30 LL | fn example<Q: T3>(q: Q) {
31    |             ++++
32
33 error: aborting due to previous error
34
35 For more information about this error, try `rustc --explain E0277`.