1error[E0277]: the trait bound `T: MyDisplay` is not satisfied 2 --> $DIR/issue-65774-1.rs:10:5 3 | 4LL | type MpuConfig: MyDisplay = T; 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `MyDisplay` is not implemented for `T` 6 | 7note: required by a bound in `MPU::MpuConfig` 8 --> $DIR/issue-65774-1.rs:10:21 9 | 10LL | type MpuConfig: MyDisplay = T; 11 | ^^^^^^^^^ required by this bound in `MPU::MpuConfig` 12 13error[E0277]: the trait bound `T: MyDisplay` is not satisfied 14 --> $DIR/issue-65774-1.rs:44:76 15 | 16LL | let closure = |config: &mut <S as MPU>::MpuConfig| writer.my_write(&config); 17 | ^^^^^^^ the trait `MyDisplay` is not implemented for `T` 18 | 19note: required because of the requirements on the impl of `MyDisplay` for `&mut T` 20 --> $DIR/issue-65774-1.rs:5:24 21 | 22LL | impl<'a, T: MyDisplay> MyDisplay for &'a mut T { } 23 | ^^^^^^^^^ ^^^^^^^^^ 24 = note: required for the cast to the object type `dyn MyDisplay` 25 26error: aborting due to 2 previous errors 27 28For more information about this error, try `rustc --explain E0277`. 29