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