blob: ae7bb1c0a76b4856182f8aea4f2f1346e32f8592 [file] [log] [blame]
// https://github.com/rust-lang/rust/issues/61623
fn f1<'a>(_: &'a mut ()) {}
fn f2<P>(_: P, _: ()) {}
fn f3<'a>(x: &'a ((), &'a mut ())) {
f2(|| x.0, f1(x.1))
//~^ ERROR cannot borrow `*x.1` as mutable, as it is behind a `&` reference
}
fn main() {}