fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
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 | 7 = help: the trait `std::marker::Sized` is not implemented for `[{integer}]` 8 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> 9 = note: required by `std::boxed::Box::<T>::new` 10 11error[E0277]: the size for values of type `[{integer}]` cannot be known at compilation time 12 --> $DIR/issue-17651.rs:5:9 13 | 14LL | (|| Box::new(*(&[0][..])))(); 15 | ^^^^^^^^ doesn't have a size known at compile-time 16 | 17 = help: the trait `std::marker::Sized` is not implemented for `[{integer}]` 18 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> 19 = note: all function arguments must have a statically known size 20 = help: unsized locals are gated as an unstable feature 21 22error: aborting due to 2 previous errors 23 24For more information about this error, try `rustc --explain E0277`.