blob: 59b541a24d1bb6cbf73eb319ea8b0e87570cac22 [file] [log] [blame]
// Suggest not mutably borrowing a mutable reference
#![crate_type = "rlib"]
pub fn f(b: &mut i32) {
g(&mut b);
//~^ ERROR cannot borrow
g(&mut &mut b);
//~^ ERROR cannot borrow
}
pub fn g(_: &mut i32) {}