]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/closures/2229_closure_analysis/run_pass/edition.rs
4 // Test that edition 2021 enables disjoint capture by default.
12 let mut p
= Point { x: 10, y: 10 }
;
18 // `c` should only capture `p.x`, therefore mutating `p.y` is allowed.