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 | ^^^^^^ the trait `IntoIterator` is not implemented for `[i32]`
7 = note: the trait bound `[i32]: IntoIterator` is not satisfied
8 = note: required for `[i32]` to implement `IntoIterator`
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 | ^^^^^^ the trait `IntoIterator` is not implemented for `[i32]`
22 = note: the trait bound `[i32]: IntoIterator` is not satisfied
23 = note: required for `[i32]` to implement `IntoIterator`
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 | ^^^^^^^ the trait `IntoIterator` is not implemented for `[K]`
37 = note: the trait bound `[K]: IntoIterator` is not satisfied
38 = note: required for `[K]` to implement `IntoIterator`
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 | ^^^^^^^ the trait `IntoIterator` is not implemented for `[K]`
52 = note: the trait bound `[K]: IntoIterator` is not satisfied
53 = note: required for `[K]` to implement `IntoIterator`
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`.