]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-types/issue-65774-2.stderr
Rollup merge of #107709 - tialaramex:master, r=compiler-errors
[rust.git] / tests / 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:33
3    |
4 LL |     type MpuConfig: MyDisplay = T;
5    |                                 ^ the trait `MyDisplay` is not implemented for `T`
6    |
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
10    |
11 LL |     type MpuConfig: MyDisplay = T;
12    |                     ^^^^^^^^^ required by this bound in `MPU::MpuConfig`
13
14 error[E0277]: the trait bound `T: MyDisplay` is not satisfied
15   --> $DIR/issue-65774-2.rs:39:25
16    |
17 LL |         writer.my_write(valref)
18    |                         ^^^^^^ the trait `MyDisplay` is not implemented for `T`
19    |
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`
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0277`.