|  | 
| 1 |  | -error[E0277]: the trait bound `Self: Trait1` is not satisfied | 
|  | 1 | +error[E0277]: the size for values of type `Self` cannot be known at compilation time | 
| 2 | 2 |   --> $DIR/issue-74816.rs:9:5 | 
| 3 | 3 |    | | 
| 4 | 4 | LL |     type Associated: Trait1 = Self; | 
| 5 |  | -   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Trait1` is not implemented for `Self` | 
|  | 5 | +   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time | 
| 6 | 6 |    | | 
| 7 | 7 | note: required by a bound in `Trait2::Associated` | 
| 8 |  | -  --> $DIR/issue-74816.rs:9:22 | 
|  | 8 | +  --> $DIR/issue-74816.rs:9:5 | 
| 9 | 9 |    | | 
| 10 | 10 | LL |     type Associated: Trait1 = Self; | 
| 11 |  | -   |                      ^^^^^^ required by this bound in `Trait2::Associated` | 
|  | 11 | +   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Trait2::Associated` | 
| 12 | 12 | help: consider further restricting `Self` | 
| 13 | 13 |    | | 
| 14 |  | -LL | trait Trait2: Trait1 { | 
| 15 |  | -   |             ++++++++ | 
|  | 14 | +LL | trait Trait2: Sized { | 
|  | 15 | +   |             +++++++ | 
| 16 | 16 | 
 | 
| 17 |  | -error[E0277]: the size for values of type `Self` cannot be known at compilation time | 
|  | 17 | +error[E0277]: the trait bound `Self: Trait1` is not satisfied | 
| 18 | 18 |   --> $DIR/issue-74816.rs:9:5 | 
| 19 | 19 |    | | 
| 20 | 20 | LL |     type Associated: Trait1 = Self; | 
| 21 |  | -   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time | 
|  | 21 | +   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Trait1` is not implemented for `Self` | 
| 22 | 22 |    | | 
| 23 | 23 | note: required by a bound in `Trait2::Associated` | 
| 24 |  | -  --> $DIR/issue-74816.rs:9:5 | 
|  | 24 | +  --> $DIR/issue-74816.rs:9:22 | 
| 25 | 25 |    | | 
| 26 | 26 | LL |     type Associated: Trait1 = Self; | 
| 27 |  | -   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Trait2::Associated` | 
|  | 27 | +   |                      ^^^^^^ required by this bound in `Trait2::Associated` | 
| 28 | 28 | help: consider further restricting `Self` | 
| 29 | 29 |    | | 
| 30 |  | -LL | trait Trait2: Sized { | 
| 31 |  | -   |             +++++++ | 
|  | 30 | +LL | trait Trait2: Trait1 { | 
|  | 31 | +   |             ++++++++ | 
| 32 | 32 | 
 | 
| 33 | 33 | error: aborting due to 2 previous errors | 
| 34 | 34 | 
 | 
|  | 
0 commit comments