@@ -8,28 +8,18 @@ LL | let some_generated_vec = (0..10).collect();
88note: required by a bound in `collect`
99 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
1010
11- error[E0277]: the size for values of type `[i32]` cannot be known at compilation time
12- --> $DIR/collect-into-slice.rs:6:30
13- |
14- LL | let some_generated_vec = (0..10).collect();
15- | ^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
16- |
17- = help: the trait `Sized` is not implemented for `[i32]`
18- = note: all local variables must have a statically known size
19- = help: unsized locals are gated as an unstable feature
20-
2111error[E0277]: the size for values of type `[i32]` cannot be known at compilation time
2212 --> $DIR/collect-into-slice.rs:6:38
2313 |
2414LL | let some_generated_vec = (0..10).collect();
2515 | ^^^^^^^ doesn't have a size known at compile-time
2616 |
2717 = help: the trait `Sized` is not implemented for `[i32]`
28- note: required by an implicit `Sized` bound in `collect`
29- --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
18+ = note: all local variables must have a statically known size
19+ = help: unsized locals are gated as an unstable feature
3020
3121error[E0277]: a slice of type `&[i32]` cannot be built since we need to store the elements somewhere
32- --> $DIR/collect-into-slice.rs:18 :38
22+ --> $DIR/collect-into-slice.rs:15 :38
3323 |
3424LL | let some_generated_vec = (0..10).collect();
3525 | ^^^^^^^ try explicitly collecting into a `Vec<{integer}>`
@@ -38,6 +28,6 @@ LL | let some_generated_vec = (0..10).collect();
3828note: required by a bound in `collect`
3929 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
4030
41- error: aborting due to 4 previous errors
31+ error: aborting due to 3 previous errors
4232
4333For more information about this error, try `rustc --explain E0277`.
0 commit comments