]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-17651.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / issues / issue-17651.stderr
CommitLineData
e1599b0c
XL
1error[E0277]: the size for values of type `[{integer}]` cannot be known at compilation time
2 --> $DIR/issue-17651.rs:5:18
3 |
4LL | (|| Box::new(*(&[0][..])))();
5 | ^^^^^^^^^^^ doesn't have a size known at compile-time
6 |
1b1a35ee
XL
7 = help: the trait `Sized` is not implemented for `[{integer}]`
8 = note: required by `Box::<T>::new`
e1599b0c 9
8faf50e0 10error[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 |
13LL | (|| Box::new(*(&[0][..])))();
14 | ^^^^^^^^ doesn't have a size known at compile-time
15 |
1b1a35ee 16 = help: the trait `Sized` is not implemented for `[{integer}]`
e1599b0c
XL
17 = note: all function arguments must have a statically known size
18 = help: unsized locals are gated as an unstable feature
8faf50e0 19
e1599b0c 20error: aborting due to 2 previous errors
8faf50e0
XL
21
22For more information about this error, try `rustc --explain E0277`.