summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/issue-81700-mut-borrow.rs
blob: a27a6160142adc34f041e8565d3163bcd63d7c4e (plain)
1
2
3
4
5
fn foo(x: &mut u32) {
    let bar = || { foo(x); };
    bar(); //~ ERROR cannot borrow
}
fn main() {}