]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/issue-63593.stderr
Rollup merge of #76468 - SNCPlay42:lifetime-names, r=Mark-Simulacrum
[rust.git] / src / test / 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:5
3    |
4 LL |     type This = Self;
5    |     ^^^^^^^^^^^^^^^^^
6    |     |
7    |     doesn't have a size known at compile-time
8    |     required by this bound in `MyTrait::This`
9    |
10 help: consider further restricting `Self`
11    |
12 LL | trait MyTrait: Sized {
13    |              ^^^^^^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.