summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/issue-80313-mutable-borrow-in-closure.rs
blob: ff210ae06a3bd1220d7d12477294bf1599655f1e (plain)
1
2
3
4
5
6
7
fn main() {
    let mut my_var = false;
    let callback = || {
        &mut my_var;
    };
    callback(); //~ ERROR E0596
}