]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-types/hr-associated-type-bound-param-3.stderr
Rollup merge of #104672 - Voultapher:unify-sort-modules, r=thomcc
[rust.git] / tests / ui / associated-types / hr-associated-type-bound-param-3.stderr
1 error[E0277]: the trait bound `str: Clone` is not satisfied
2   --> $DIR/hr-associated-type-bound-param-3.rs:13:14
3    |
4 LL |     type U = str;
5    |              ^^^ the trait `Clone` is not implemented for `str`
6    |
7    = help: the trait `Clone` is implemented for `String`
8 note: required by a bound in `X`
9   --> $DIR/hr-associated-type-bound-param-3.rs:4:33
10    |
11 LL | trait X<'a, T>
12    |       - required by a bound in this
13 ...
14 LL |     for<'b> <T as X<'b, T>>::U: Clone,
15    |                                 ^^^^^ required by this bound in `X`
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.