1 error[E0277]: cannot add `<T as SubEncoder>::ActualSize` to `<T as SubEncoder>::ActualSize`
2 --> $DIR/issue-54108.rs:19:5
4 LL | type Size: Add<Output = Self::Size>;
5 | ------------------------ required by this bound in `Encoder::Size`
7 LL | type Size = <Self as SubEncoder>::ActualSize;
8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `<T as SubEncoder>::ActualSize + <T as SubEncoder>::ActualSize`
10 = help: the trait `Add` is not implemented for `<T as SubEncoder>::ActualSize`
11 help: consider further restricting the associated type
13 LL | T: SubEncoder, <T as SubEncoder>::ActualSize: Add
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0277`.