]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-types/trait-with-supertraits-needing-sized-self.stderr
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / associated-types / trait-with-supertraits-needing-sized-self.stderr
1 error[E0277]: the size for values of type `Self` cannot be known at compilation time
2   --> $DIR/trait-with-supertraits-needing-sized-self.rs:3:22
3    |
4 LL | trait ArithmeticOps: Add<Output=Self> + Sub<Output=Self> + Mul<Output=Self> + Div<Output=Self> {}
5    |                      ^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
6    |
7 note: required by a bound in `Add`
8   --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
9 help: consider further restricting `Self`
10    |
11 LL | trait ArithmeticOps: Add<Output=Self> + Sub<Output=Self> + Mul<Output=Self> + Div<Output=Self> + Sized {}
12    |                                                                                                +++++++
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0277`.