]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/issue-54108.stderr
Rollup merge of #97317 - GuillaumeGomez:gui-settings-text-click, r=jsha
[rust.git] / src / test / ui / associated-types / issue-54108.stderr
1 error[E0277]: cannot add `<T as SubEncoder>::ActualSize` to `<T as SubEncoder>::ActualSize`
2   --> $DIR/issue-54108.rs:19:17
3    |
4 LL |     type Size = <Self as SubEncoder>::ActualSize;
5    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `<T as SubEncoder>::ActualSize + <T as SubEncoder>::ActualSize`
6    |
7    = help: the trait `Add` is not implemented for `<T as SubEncoder>::ActualSize`
8 note: required by a bound in `Encoder::Size`
9   --> $DIR/issue-54108.rs:4:16
10    |
11 LL |     type Size: Add<Output = Self::Size>;
12    |                ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Encoder::Size`
13 help: consider further restricting the associated type
14    |
15 LL |     T: SubEncoder, <T as SubEncoder>::ActualSize: Add
16    |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0277`.