1 error[E0277]: the size for values of type `[i32]` cannot be known at compilation time
2 --> $DIR/slice-issue-87994.rs:3:12
5 | ^^^^^^ expected an implementor of trait `IntoIterator`
7 = note: the trait bound `[i32]: IntoIterator` is not satisfied
8 = note: required because of the requirements on the impl of `IntoIterator` for `[i32]`
9 help: consider borrowing here
11 LL | for _ in &v[1..] {
13 LL | for _ in &mut v[1..] {
16 error[E0277]: `[i32]` is not an iterator
17 --> $DIR/slice-issue-87994.rs:3:12
19 LL | for _ in v[1..] {
20 | ^^^^^^ expected an implementor of trait `IntoIterator`
22 = note: the trait bound `[i32]: IntoIterator` is not satisfied
23 = note: required because of the requirements on the impl of `IntoIterator` for `[i32]`
24 help: consider borrowing here
26 LL | for _ in &v[1..] {
28 LL | for _ in &mut v[1..] {
31 error[E0277]: the size for values of type `[K]` cannot be known at compilation time
32 --> $DIR/slice-issue-87994.rs:11:13
34 LL | for i2 in v2[1..] {
35 | ^^^^^^^ expected an implementor of trait `IntoIterator`
37 = note: the trait bound `[K]: IntoIterator` is not satisfied
38 = note: required because of the requirements on the impl of `IntoIterator` for `[K]`
39 help: consider borrowing here
41 LL | for i2 in &v2[1..] {
43 LL | for i2 in &mut v2[1..] {
46 error[E0277]: `[K]` is not an iterator
47 --> $DIR/slice-issue-87994.rs:11:13
49 LL | for i2 in v2[1..] {
50 | ^^^^^^^ expected an implementor of trait `IntoIterator`
52 = note: the trait bound `[K]: IntoIterator` is not satisfied
53 = note: required because of the requirements on the impl of `IntoIterator` for `[K]`
54 help: consider borrowing here
56 LL | for i2 in &v2[1..] {
58 LL | for i2 in &mut v2[1..] {
61 error: aborting due to 4 previous errors
63 For more information about this error, try `rustc --explain E0277`.