error[E0277]: `Vec` is not an iterator --> $DIR/suggest-remove-refs-5.rs:4:14 | LL | for _ in &mut &mut v {} | ^^^^^^^^^^^ `Vec` is not an iterator; try calling `.into_iter()` or `.iter()` | = help: the trait `Iterator` is not implemented for `Vec` = note: required for `&mut Vec` to implement `Iterator` = note: 3 redundant requirements hidden = note: required for `&mut &mut &mut &mut Vec` to implement `Iterator` = note: required for `&mut &mut &mut &mut Vec` to implement `IntoIterator` help: consider removing 3 leading `&`-references | LL ~ let v = &mut Vec::::new(); LL ~ for _ in v {} | error[E0277]: `[u8; 1]` is not an iterator --> $DIR/suggest-remove-refs-5.rs:7:14 | LL | for _ in &mut v {} | ^^^^^^ `[u8; 1]` is not an iterator; try calling `.into_iter()` or `.iter()` | = help: the trait `Iterator` is not implemented for `[u8; 1]` = note: required for `&mut [u8; 1]` to implement `Iterator` = note: 2 redundant requirements hidden = note: required for `&mut &mut &mut [u8; 1]` to implement `Iterator` = note: required for `&mut &mut &mut [u8; 1]` to implement `IntoIterator` help: consider removing 2 leading `&`-references | LL ~ let v = &mut [1u8]; LL ~ for _ in v {} | error: aborting due to 2 previous errors For more information about this error, try `rustc --explain E0277`.