]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/hr-associated-type-bound-1.stderr
Rollup merge of #76468 - SNCPlay42:lifetime-names, r=Mark-Simulacrum
[rust.git] / src / test / ui / associated-types / hr-associated-type-bound-1.stderr
1 error[E0277]: the trait bound `for<'b> <i32 as X<'b>>::U: Clone` is not satisfied
2   --> $DIR/hr-associated-type-bound-1.rs:12:14
3    |
4 LL | trait X<'a>
5    |       - required by a bound in this
6 LL | where
7 LL |     for<'b> <Self as X<'b>>::U: Clone,
8    |                                 ----- required by this bound in `X`
9 ...
10 LL |     type U = str;
11    |              ^^^ the trait `for<'b> Clone` is not implemented for `<i32 as X<'b>>::U`
12    |
13    = help: the following implementations were found:
14              <&T as Clone>
15              <&mut T as Clone>
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.