1 // This is the third counter-example from Niko's blog post
2 // smallcultfollowing.com/babysteps/blog/2017/03/01/nested-method-calls-via-two-phase-borrowing/
4 // It shows that not all nested method calls on `self` are magically
5 // allowed by this change. In particular, a nested `&mut` borrow is
11 let mut vec = vec![0, 1];
15 //~^ ERROR cannot borrow `vec` as mutable because it is also borrowed as immutable