]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/issue-54108.stderr
Rollup merge of #76468 - SNCPlay42:lifetime-names, r=Mark-Simulacrum
[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:5
3    |
4 LL |     type Size: Add<Output = Self::Size>;
5    |                ------------------------ required by this bound in `Encoder::Size`
6 ...
7 LL |     type Size = <Self as SubEncoder>::ActualSize;
8    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `<T as SubEncoder>::ActualSize + <T as SubEncoder>::ActualSize`
9    |
10    = help: the trait `Add` is not implemented for `<T as SubEncoder>::ActualSize`
11 help: consider further restricting the associated type
12    |
13 LL |     T: SubEncoder, <T as SubEncoder>::ActualSize: Add
14    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0277`.