]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17651.stderr
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-17651.stderr
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][..])))();
5    |         -------- ^^^^^^^^^^^ doesn't have a size known at compile-time
6    |         |
7    |         required by a bound introduced by this call
8    |
9    = help: the trait `Sized` is not implemented for `[{integer}]`
10 note: required by a bound in `Box::<T>::new`
11   --> $SRC_DIR/alloc/src/boxed.rs:LL:COL
12    |
13 LL | impl<T> Box<T> {
14    |      ^ required by this bound in `Box::<T>::new`
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0277`.