blob: 0f8c74554677866aed1ae3377f346c1017a2f483 [file] [log] [blame]
fn main() {
let mut buf = &[1, 2, 3, 4];
buf.iter_mut(); //~ ERROR cannot borrow `*buf` as mutable, as it is behind a `&` reference
}