]> git.proxmox.com Git - rustc.git/blob - src/test/ui/associated-types/hr-associated-type-bound-param-2.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / associated-types / hr-associated-type-bound-param-2.stderr
1 error[E0277]: the trait bound `str: Clone` is not satisfied
2 --> $DIR/hr-associated-type-bound-param-2.rs:3:8
3 |
4 LL | T: Z<'a, u16>,
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 `Z`
9 --> $DIR/hr-associated-type-bound-param-2.rs:6:35
10 |
11 LL | trait Z<'a, T: ?Sized>
12 | - required by a bound in this
13 ...
14 LL | for<'b> <T as Z<'b, u16>>::W: Clone,
15 | ^^^^^ required by this bound in `Z`
16
17 error[E0277]: the trait bound `str: Clone` is not satisfied
18 --> $DIR/hr-associated-type-bound-param-2.rs:15:14
19 |
20 LL | type W = str;
21 | ^^^ the trait `Clone` is not implemented for `str`
22 |
23 = help: the trait `Clone` is implemented for `String`
24 note: required by a bound in `Z`
25 --> $DIR/hr-associated-type-bound-param-2.rs:6:35
26 |
27 LL | trait Z<'a, T: ?Sized>
28 | - required by a bound in this
29 ...
30 LL | for<'b> <T as Z<'b, u16>>::W: Clone,
31 | ^^^^^ required by this bound in `Z`
32
33 error[E0277]: the trait bound `str: Clone` is not satisfied
34 --> $DIR/hr-associated-type-bound-param-2.rs:3:8
35 |
36 LL | T: Z<'a, u16>,
37 | ^^^^^^^^^^ the trait `Clone` is not implemented for `str`
38 |
39 = help: the trait `Clone` is implemented for `String`
40 note: required by a bound in `Z`
41 --> $DIR/hr-associated-type-bound-param-2.rs:6:35
42 |
43 LL | trait Z<'a, T: ?Sized>
44 | - required by a bound in this
45 ...
46 LL | for<'b> <T as Z<'b, u16>>::W: Clone,
47 | ^^^^^ required by this bound in `Z`
48
49 error: aborting due to 3 previous errors
50
51 For more information about this error, try `rustc --explain E0277`.