]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/hr-associated-type-bound-1.stderr
Rollup merge of #97436 - compiler-errors:macos-ping-2, r=Mark-Simulacrum
[rust.git] / src / test / ui / associated-types / hr-associated-type-bound-1.stderr
1 error[E0277]: the trait bound `str: Clone` is not satisfied
2   --> $DIR/hr-associated-type-bound-1.rs:12: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-1.rs:3:33
10    |
11 LL | trait X<'a>
12    |       - required by a bound in this
13 LL | where
14 LL |     for<'b> <Self as X<'b>>::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`.