]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/hr-associated-type-bound-param-3.stderr
Rollup merge of #93385 - CraftSpider:rustdoc-ty-fixes, r=camelid
[rust.git] / src / test / 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 following implementations were found:
8              <String as Clone>
9 note: required by a bound in `X`
10   --> $DIR/hr-associated-type-bound-param-3.rs:4:33
11    |
12 LL | trait X<'a, T>
13    |       - required by a bound in this
14 ...
15 LL |     for<'b> <T as X<'b, T>>::U: Clone,
16    |                                 ^^^^^ required by this bound in `X`
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0277`.