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