Files
rust/tests/ui/dst/dst-bad-deep-2.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
742 B
Plaintext
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0277]: the size for values of type `[isize]` cannot be known at compilation time
2025-02-27 08:21:47 +00:00
--> $DIR/dst-bad-deep-2.rs:11:38
2018-08-08 14:28:26 +02:00
|
2025-02-27 08:21:47 +00:00
LL | let h: &Fat<Fat<[isize]>> = &Fat(*g);
| ^^ doesn't have a size known at compile-time
2018-08-08 14:28:26 +02:00
|
2025-02-27 08:21:47 +00:00
= help: within `Fat<[isize]>`, the trait `Sized` is not implemented for `[isize]`
note: required because it appears within the type `Fat<[isize]>`
--> $DIR/dst-bad-deep-2.rs:6:8
|
LL | struct Fat<T: ?Sized>(T);
| ^^^
= note: all function arguments must have a statically known size
= help: unsized fn params are gated as an unstable feature
2018-08-08 14:28:26 +02:00
error: aborting due to 1 previous error
2018-08-08 14:28:26 +02:00
For more information about this error, try `rustc --explain E0277`.