]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-61623.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-61623.rs
1 fn f1<'a>(_: &'a mut ()) {}
2
3 fn f2<P>(_: P, _: ()) {}
4
5 fn f3<'a>(x: &'a ((), &'a mut ())) {
6 f2(|| x.0, f1(x.1))
7 //~^ ERROR cannot borrow `*x.1` as mutable, as it is behind a `&` reference
8 }
9
10 fn main() {}