]> git.lizzy.rs Git - rust.git/blob - tests/ui/generics/issue-61631-default-type-param-can-reference-self-in-trait.stderr
Rollup merge of #107598 - chenyukang:yukang/fix-core-bench, r=thomcc
[rust.git] / tests / ui / generics / issue-61631-default-type-param-can-reference-self-in-trait.stderr
1 error[E0277]: the size for values of type `[()]` cannot be known at compilation time
2   --> $DIR/issue-61631-default-type-param-can-reference-self-in-trait.rs:19:6
3    |
4 LL | impl Tsized for () {}
5    |      ^^^^^^ doesn't have a size known at compile-time
6    |
7    = help: the trait `Sized` is not implemented for `[()]`
8 note: required by a bound in `Tsized`
9   --> $DIR/issue-61631-default-type-param-can-reference-self-in-trait.rs:17:14
10    |
11 LL | trait Tsized<P: Sized = [Self]> {}
12    |              ^^^^^^^^^^^^^^^^^ required by this bound in `Tsized`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0277`.