]> git.proxmox.com Git - rustc.git/blob - src/test/ui/associated-types/issue-65774-1.stderr
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / src / test / ui / associated-types / issue-65774-1.stderr
1 error[E0277]: the trait bound `T: MyDisplay` is not satisfied
2 --> $DIR/issue-65774-1.rs:10:5
3 |
4 LL | type MpuConfig: MyDisplay = T;
5 | ^^^^^^^^^^^^^^^^---------^^^^^
6 | | |
7 | | required by this bound in `MPU::MpuConfig`
8 | the trait `MyDisplay` is not implemented for `T`
9
10 error[E0277]: the trait bound `T: MyDisplay` is not satisfied
11 --> $DIR/issue-65774-1.rs:44:76
12 |
13 LL | let closure = |config: &mut <S as MPU>::MpuConfig| writer.my_write(&config);
14 | ^^^^^^^ the trait `MyDisplay` is not implemented for `T`
15 |
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`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0277`.