Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
use std::iter::repeat;
fn main() {
let mut vector = vec![1, 2];
for &x in &vector {
let cap = vector.capacity();
vector.extend(repeat(0)); //~ ERROR cannot borrow
vector[1] = 5; //~ ERROR cannot borrow
}