]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generics/issue-61631-default-type-param-can-reference-self-in-trait.stderr
Auto merge of #96711 - emilio:inline-slice-clone, r=nikic
[rust.git] / src / test / 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`.