1 error: compilation successful
2 --> $DIR/issue-17263.rs:15:1
4 LL | / fn main() { #![rustc_error] // rust-lang/rust#49855
5 LL | | let mut x: Box<_> = box Foo { a: 1, b: 2 };
6 LL | | let (a, b) = (&mut x.a, &mut x.b);
7 LL | | //~^ ERROR cannot borrow `x` (via `x.b`) as mutable more than once at a time
9 LL | | //~^ ERROR cannot borrow `foo` (via `foo.b`) as immutable
13 error: aborting due to previous error