]> git.proxmox.com Git - rustc.git/blob - src/test/ui/associated-types/hr-associated-type-bound-param-5.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / associated-types / hr-associated-type-bound-param-5.stderr
1 error[E0277]: the trait bound `str: Clone` is not satisfied
2 --> $DIR/hr-associated-type-bound-param-5.rs:27:14
3 |
4 LL | type U = str;
5 | ^^^ the trait `Clone` is not implemented for `str`
6 |
7 note: required by a bound in `X`
8 --> $DIR/hr-associated-type-bound-param-5.rs:18:45
9 |
10 LL | trait X<'a, T: Cycle + for<'b> X<'b, T>>
11 | - required by a bound in this
12 ...
13 LL | for<'b> <T::Next as X<'b, T::Next>>::U: Clone,
14 | ^^^^^ required by this bound in `X`
15
16 error[E0277]: the trait bound `str: Clone` is not satisfied
17 --> $DIR/hr-associated-type-bound-param-5.rs:32:14
18 |
19 LL | type U = str;
20 | ^^^ the trait `Clone` is not implemented for `str`
21 |
22 note: required by a bound in `X`
23 --> $DIR/hr-associated-type-bound-param-5.rs:18:45
24 |
25 LL | trait X<'a, T: Cycle + for<'b> X<'b, T>>
26 | - required by a bound in this
27 ...
28 LL | for<'b> <T::Next as X<'b, T::Next>>::U: Clone,
29 | ^^^^^ required by this bound in `X`
30
31 error: aborting due to 2 previous errors
32
33 For more information about this error, try `rustc --explain E0277`.