]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17263.nll.stderr
Rollup merge of #52946 - Ajacmac:doc-impl-from, r=GuillaumeGomez
[rust.git] / src / test / ui / issues / issue-17263.nll.stderr
1 error: compilation successful
2   --> $DIR/issue-17263.rs:15:1
3    |
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
8 ...  |
9 LL | |     //~^ ERROR cannot borrow `foo` (via `foo.b`) as immutable
10 LL | | }
11    | |_^
12
13 error: aborting due to previous error
14