3 // Test that if we deref an immutable borrow to access a Place,
4 // then we can't mutate the final place.
7 let mut x = (format!(""), format!("X2"));
11 // `x.0` is mutable but we access `x` via `*z.0.0`, which is an immutable reference and
12 // therefore can't be mutated.
14 //~^ ERROR: cannot borrow `*z.0.0` as mutable, as it is behind a `&` reference
15 z.0.0.0 = format!("X1");