fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the size for values of type `[i32]` cannot be known at compilation time 2 --> $DIR/slice-issue-87994.rs:3:12 3 | 4LL | for _ in v[1..] { 5 | ^^^^^^ the trait `IntoIterator` is not implemented for `[i32]` 6 | 7 = note: the trait bound `[i32]: IntoIterator` is not satisfied 8 = note: required for `[i32]` to implement `IntoIterator` 9help: consider borrowing here 10 | 11LL | for _ in &v[1..] { 12 | + 13LL | for _ in &mut v[1..] { 14 | ++++ 15 16error[E0277]: `[i32]` is not an iterator 17 --> $DIR/slice-issue-87994.rs:3:12 18 | 19LL | for _ in v[1..] { 20 | ^^^^^^ the trait `IntoIterator` is not implemented for `[i32]` 21 | 22 = note: the trait bound `[i32]: IntoIterator` is not satisfied 23 = note: required for `[i32]` to implement `IntoIterator` 24help: consider borrowing here 25 | 26LL | for _ in &v[1..] { 27 | + 28LL | for _ in &mut v[1..] { 29 | ++++ 30 31error[E0277]: the size for values of type `[K]` cannot be known at compilation time 32 --> $DIR/slice-issue-87994.rs:11:13 33 | 34LL | for i2 in v2[1..] { 35 | ^^^^^^^ the trait `IntoIterator` is not implemented for `[K]` 36 | 37 = note: the trait bound `[K]: IntoIterator` is not satisfied 38 = note: required for `[K]` to implement `IntoIterator` 39help: consider borrowing here 40 | 41LL | for i2 in &v2[1..] { 42 | + 43LL | for i2 in &mut v2[1..] { 44 | ++++ 45 46error[E0277]: `[K]` is not an iterator 47 --> $DIR/slice-issue-87994.rs:11:13 48 | 49LL | for i2 in v2[1..] { 50 | ^^^^^^^ the trait `IntoIterator` is not implemented for `[K]` 51 | 52 = note: the trait bound `[K]: IntoIterator` is not satisfied 53 = note: required for `[K]` to implement `IntoIterator` 54help: consider borrowing here 55 | 56LL | for i2 in &v2[1..] { 57 | + 58LL | for i2 in &mut v2[1..] { 59 | ++++ 60 61error: aborting due to 4 previous errors 62 63For more information about this error, try `rustc --explain E0277`.