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 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Trait1` is not implemented for `Self`
7 note: required by a bound in `Trait2::Associated`
8 --> $DIR/issue-74816.rs:9:22
10 LL | type Associated: Trait1 = Self;
11 | ^^^^^^ required by this bound in `Trait2::Associated`
12 help: consider further restricting `Self`
14 LL | trait Trait2: Trait1 {
17 error[E0277]: the size for values of type `Self` cannot be known at compilation time
18 --> $DIR/issue-74816.rs:9:5
20 LL | type Associated: Trait1 = Self;
21 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
23 note: required by a bound in `Trait2::Associated`
24 --> $DIR/issue-74816.rs:9:5
26 LL | type Associated: Trait1 = Self;
27 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Trait2::Associated`
28 help: consider further restricting `Self`
30 LL | trait Trait2: Sized {
33 error: aborting due to 2 previous errors
35 For more information about this error, try `rustc --explain E0277`.