]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/issue-74816.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / issue-74816.stderr
1 error[E0277]: the trait bound `Self: Trait1` is not satisfied
2 --> $DIR/issue-74816.rs:8:31
3 |
4 LL | type Associated: Trait1 = Self;
5 | ^^^^ the trait `Trait1` is not implemented for `Self`
6 |
7 note: required by a bound in `Trait2::Associated`
8 --> $DIR/issue-74816.rs:8:22
9 |
10 LL | type Associated: Trait1 = Self;
11 | ^^^^^^ required by this bound in `Trait2::Associated`
12 help: consider further restricting `Self`
13 |
14 LL | trait Trait2: Trait1 {
15 | ++++++++
16
17 error[E0277]: the size for values of type `Self` cannot be known at compilation time
18 --> $DIR/issue-74816.rs:8:31
19 |
20 LL | type Associated: Trait1 = Self;
21 | ^^^^ doesn't have a size known at compile-time
22 |
23 note: required by a bound in `Trait2::Associated`
24 --> $DIR/issue-74816.rs:8:5
25 |
26 LL | type Associated: Trait1 = Self;
27 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Trait2::Associated`
28 help: consider further restricting `Self`
29 |
30 LL | trait Trait2: Sized {
31 | +++++++
32
33 error: aborting due to 2 previous errors
34
35 For more information about this error, try `rustc --explain E0277`.