blob: 212f706953e6ba130bb54cf094e4d30d5c2fdea4 [file] [log] [blame]
// Suggest not mutably borrowing a mutable reference
fn main() {
f(&mut 0)
}
fn f(b: &mut i32) {
g(&mut b) //~ ERROR cannot borrow
}
fn g(_: &mut i32) {}