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