blob: 6144f062169860782f2cb087572c8aa6097a8b6c [file] [log] [blame] [edit]
//@ run-rustfix
#![allow(dead_code)]
fn mutate(_y: &mut i32) {}
fn foo(&(mut x): &i32) {
mutate(&mut x);
//~^ ERROR cannot borrow `x` as mutable
}
fn main() {}