9 // Create an immutable pointer into p's contents:
10 let q: &isize = &p[0];
12 p[0] = 5; //~ ERROR cannot borrow
17 fn borrow<F>(_x: &[isize], _f: F) where F: FnOnce() {}
20 // here we alias the mutable vector into an imm slice and try to
21 // modify the original:
27 || p[0] = 5); //~ ERROR cannot borrow `p` as mutable
31 // Legal because the scope of the borrow does not include the