1 error[E0277]: the trait bound `Self: Trait1` is not satisfied
2 --> $DIR/issue-74816.rs:9:5
4 LL | type Associated: Trait1 = Self;
5 | ^^^^^^^^^^^^^^^^^------^^^^^^^^
7 | | required by this bound in `Trait2::Associated`
8 | the trait `Trait1` is not implemented for `Self`
10 help: consider further restricting `Self`
12 LL | trait Trait2: Trait1 {
15 error[E0277]: the size for values of type `Self` cannot be known at compilation time
16 --> $DIR/issue-74816.rs:9:5
18 LL | type Associated: Trait1 = Self;
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 | doesn't have a size known at compile-time
22 | required by this bound in `Trait2::Associated`
24 help: consider further restricting `Self`
26 LL | trait Trait2: Sized {
29 error: aborting due to 2 previous errors
31 For more information about this error, try `rustc --explain E0277`.