borrow checker한테 많이 뚜드려 맞은 것 같은데 아직도 감이 안 잡히는 게 슬프다.


use std::iter::Iterator; fn main() { let v = &mut vec![1u8, 2, 3]; let a = &v[..2].chunks(1); let b = &v[1..]; for (m, n) in a.zip(b.iter()) { println!("{:?} {}", m, n); } } error[E0507]: cannot move out of borrowed content --> src\main.rs:7:17 | 7 | for (m, n) in a.zip(b.iter()) { | ^ cannot move out of borrowed content error: aborting due to previous error For more information about this error, try `rustc --explain E0507`.


이 에러가 어떤 이유로 나는 건지 알고 싶음. 어떻게 고치면 되는 지도 알려주면 좋고.