]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/closures/2229_closure_analysis/run_pass/mut_ref_struct_mem.rs
4 // Test that we can mutate a place through a mut-borrow
5 // that is captured by the closure
7 // More specifically we test that the if the mutable reference isn't root variable of a capture
8 // but rather accessed while accessing the precise capture.
13 let t1
= (&mut t
, 10);
16 // Mutable because (*t.0) is mutable
23 fn mut_tuple_nested() {
26 let t1
= (&mut t
, 10);
30 // Mutable because (*t.0) is mutable