]> git.proxmox.com Git - rustc.git/blob - src/test/ui/associated-types/issue-65774-2.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / associated-types / issue-65774-2.stderr
1 error[E0277]: the trait bound `T: MyDisplay` is not satisfied
2 --> $DIR/issue-65774-2.rs:10:5
3 |
4 LL | type MpuConfig: MyDisplay = T;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `MyDisplay` is not implemented for `T`
6 |
7 note: required by a bound in `MPU::MpuConfig`
8 --> $DIR/issue-65774-2.rs:10:21
9 |
10 LL | type MpuConfig: MyDisplay = T;
11 | ^^^^^^^^^ required by this bound in `MPU::MpuConfig`
12
13 error[E0277]: the trait bound `T: MyDisplay` is not satisfied
14 --> $DIR/issue-65774-2.rs:39:25
15 |
16 LL | writer.my_write(valref)
17 | ^^^^^^ the trait `MyDisplay` is not implemented for `T`
18 |
19 = note: required for the cast to the object type `dyn MyDisplay`
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0277`.