]> git.proxmox.com Git - rustc.git/blame - src/test/ui/dst/dst-bad-deep.stderr
New upstream version 1.59.0+dfsg1
[rustc.git] / src / test / ui / dst / dst-bad-deep.stderr
CommitLineData
b7449926 1error[E0277]: the size for values of type `[isize]` cannot be known at compilation time
0731742a 2 --> $DIR/dst-bad-deep.rs:13:34
b7449926
XL
3 |
4LL | let h: &Fat<Fat<[isize]>> = &Fat { ptr: *g };
5 | ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
6 |
1b1a35ee 7 = help: within `Fat<Fat<[isize]>>`, the trait `Sized` is not implemented for `[isize]`
cdc7bbd5
XL
8note: required because it appears within the type `Fat<[isize]>`
9 --> $DIR/dst-bad-deep.rs:6:8
10 |
cdc7bbd5
XL
11LL | struct Fat<T: ?Sized> {
12 | ^^^
b7449926
XL
13 = note: structs must have a statically known size to be initialized
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0277`.