1 error[E0277]: the size for values of type `[i32]` cannot be known at compilation time
2 --> $DIR/collect-into-slice.rs:6:9
4 LL | let some_generated_vec = (0..10).collect();
5 | ^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
7 = help: the trait `Sized` is not implemented for `[i32]`
8 = note: all local variables must have a statically known size
9 = help: unsized locals are gated as an unstable feature
11 error[E0277]: the size for values of type `[i32]` cannot be known at compilation time
12 --> $DIR/collect-into-slice.rs:6:38
14 LL | let some_generated_vec = (0..10).collect();
15 | ^^^^^^^ doesn't have a size known at compile-time
17 = help: the trait `Sized` is not implemented for `[i32]`
18 note: required by a bound in `collect`
19 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
21 error[E0277]: a slice of type `[i32]` cannot be built since `[i32]` has no definite size
22 --> $DIR/collect-into-slice.rs:6:38
24 LL | let some_generated_vec = (0..10).collect();
25 | ^^^^^^^ try explicitly collecting into a `Vec<{integer}>`
27 = help: the trait `FromIterator<{integer}>` is not implemented for `[i32]`
28 note: required by a bound in `collect`
29 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
31 error: aborting due to 3 previous errors
33 For more information about this error, try `rustc --explain E0277`.