]>
Commit | Line | Data |
---|---|---|
e1599b0c XL |
1 | error[E0277]: the size for values of type `[{integer}]` cannot be known at compilation time |
2 | --> $DIR/issue-17651.rs:5:18 | |
3 | | | |
4 | LL | (|| Box::new(*(&[0][..])))(); | |
c295e0f8 XL |
5 | | -------- ^^^^^^^^^^^ doesn't have a size known at compile-time |
6 | | | | |
7 | | required by a bound introduced by this call | |
e1599b0c | 8 | | |
1b1a35ee | 9 | = help: the trait `Sized` is not implemented for `[{integer}]` |
3c0e092e | 10 | note: required by a bound in `Box::<T>::new` |
136023e0 XL |
11 | --> $SRC_DIR/alloc/src/boxed.rs:LL:COL |
12 | | | |
3c0e092e XL |
13 | LL | impl<T> Box<T> { |
14 | | ^ required by this bound in `Box::<T>::new` | |
e1599b0c | 15 | |
c295e0f8 | 16 | error: aborting due to previous error |
8faf50e0 XL |
17 | |
18 | For more information about this error, try `rustc --explain E0277`. |