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