3 // Ensure that diagnostics for mutability error (because the root variable
4 // isn't mutable) work with `capture_disjoint_fields` enabled.
6 fn mut_error_struct() {
13 //~^ ERROR: cannot assign to `z.0.0.0`, as it is not declared as mutable
25 //~^ ERROR: cannot assign to `*bx.0`, as it is not declared as mutable