]>
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][..])))(); | |
5 | | ^^^^^^^^^^^ doesn't have a size known at compile-time | |
6 | | | |
72b1a166 FG |
7 | = help: the trait `Sized` is not implemented for `[{integer}]` |
8 | = note: required by `Box::<T>::new` | |
e1599b0c | 9 | |
8faf50e0 | 10 | error[E0277]: the size for values of type `[{integer}]` cannot be known at compilation time |
0731742a | 11 | --> $DIR/issue-17651.rs:5:9 |
8faf50e0 XL |
12 | | |
13 | LL | (|| Box::new(*(&[0][..])))(); | |
14 | | ^^^^^^^^ doesn't have a size known at compile-time | |
15 | | | |
72b1a166 | 16 | = help: the trait `Sized` is not implemented for `[{integer}]` |
e1599b0c | 17 | = note: all function arguments must have a statically known size |
72b1a166 | 18 | = help: unsized fn params are gated as an unstable feature |
8faf50e0 | 19 | |
e1599b0c | 20 | error: aborting due to 2 previous errors |
8faf50e0 XL |
21 | |
22 | For more information about this error, try `rustc --explain E0277`. |