2019-09-16 04:58:20 +00:00
|
|
|
error[E0277]: the size for values of type `[{integer}]` cannot be known at compilation time
|
|
|
|
--> $DIR/issue-17651.rs:5:18
|
|
|
|
|
|
|
|
|
LL | (|| Box::new(*(&[0][..])))();
|
2021-09-07 11:30:53 +00:00
|
|
|
| -------- ^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2019-09-16 04:58:20 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Sized` is not implemented for `[{integer}]`
|
2021-10-05 23:04:09 +00:00
|
|
|
note: required by a bound in `Box::<T>::new`
|
2021-07-17 18:13:50 +00:00
|
|
|
--> $SRC_DIR/alloc/src/boxed.rs:LL:COL
|
2019-09-16 04:58:20 +00:00
|
|
|
|
2021-09-14 10:52:36 +00:00
|
|
|
error: aborting due to previous error
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|