]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-types/hr-associated-type-bound-object.stderr
Rollup merge of #107150 - Nilstrieb:thread-local-cleanups, r=cjgillot
[rust.git] / tests / ui / associated-types / hr-associated-type-bound-object.stderr
1 error[E0277]: the trait bound `for<'b> <T as X<'b>>::U: Clone` is not satisfied
2   --> $DIR/hr-associated-type-bound-object.rs:7:13
3    |
4 LL | fn f<'a, T: X<'a> + ?Sized>(x: &<T as X<'a>>::U) {
5    |             ^^^^^ the trait `for<'b> Clone` is not implemented for `<T as X<'b>>::U`
6    |
7 note: required by a bound in `X`
8   --> $DIR/hr-associated-type-bound-object.rs:3:33
9    |
10 LL | trait X<'a>
11    |       - required by a bound in this
12 LL | where
13 LL |     for<'b> <Self as X<'b>>::U: Clone,
14    |                                 ^^^^^ required by this bound in `X`
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0277`.