]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-types/issue-63593.stderr
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / associated-types / issue-63593.stderr
1 error[E0277]: the size for values of type `Self` cannot be known at compilation time
2   --> $DIR/issue-63593.rs:9:17
3    |
4 LL |     type This = Self;
5    |                 ^^^^ doesn't have a size known at compile-time
6    |
7 note: required by a bound in `MyTrait::This`
8   --> $DIR/issue-63593.rs:9:5
9    |
10 LL |     type This = Self;
11    |     ^^^^^^^^^^^^^^^^^ required by this bound in `MyTrait::This`
12 help: consider further restricting `Self`
13    |
14 LL | trait MyTrait: Sized {
15    |              +++++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.