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
|
2024-07-31 22:39:40 +00:00
|
|
|
help: references are always `Sized`, even if they point to unsized data; consider not dereferencing the expression
|
|
|
|
|
|
|
|
|
LL - (|| Box::new(*(&[0][..])))();
|
|
|
|
LL + (|| Box::new((&[0][..])))();
|
|
|
|
|
|
2019-09-16 04:58:20 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|