1 error[E0277]: the trait bound `T: MyDisplay` is not satisfied
2 --> $DIR/issue-65774-2.rs:10:33
4 LL | type MpuConfig: MyDisplay = T;
5 | ^ the trait `MyDisplay` is not implemented for `T`
7 = help: the trait `MyDisplay` is implemented for `&'a mut T`
8 note: required by a bound in `MPU::MpuConfig`
9 --> $DIR/issue-65774-2.rs:10:21
11 LL | type MpuConfig: MyDisplay = T;
12 | ^^^^^^^^^ required by this bound in `MPU::MpuConfig`
14 error[E0277]: the trait bound `T: MyDisplay` is not satisfied
15 --> $DIR/issue-65774-2.rs:39:25
17 LL | writer.my_write(valref)
18 | ^^^^^^ the trait `MyDisplay` is not implemented for `T`
20 = help: the trait `MyDisplay` is implemented for `&'a mut T`
21 = note: required for the cast from `T` to the object type `dyn MyDisplay`
23 error: aborting due to 2 previous errors
25 For more information about this error, try `rustc --explain E0277`.