]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dst/dst-bad-deep.stderr
Rollup merge of #100479 - compiler-errors:argument-type-error-improvements, r=lcnr
[rust.git] / src / test / ui / dst / dst-bad-deep.stderr
1 error[E0277]: the size for values of type `[isize]` cannot be known at compilation time
2   --> $DIR/dst-bad-deep.rs:13:34
3    |
4 LL |     let h: &Fat<Fat<[isize]>> = &Fat { ptr: *g };
5    |                                  ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
6    |
7    = help: within `Fat<Fat<[isize]>>`, the trait `Sized` is not implemented for `[isize]`
8 note: required because it appears within the type `Fat<[isize]>`
9   --> $DIR/dst-bad-deep.rs:6:8
10    |
11 LL | struct Fat<T: ?Sized> {
12    |        ^^^
13    = note: structs must have a statically known size to be initialized
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.