3 // Test that borrow checker error is accurate and that min capture pass of the
4 // closure analysis is working as expected.
13 let mut p = Point { x: 10, y: 20 };
15 // `p` is captured via mutable borrow.
23 //~^ ERROR: cannot borrow `p` as immutable because it is also borrowed as mutable