8 println!("drop {}", self.x);
14 let mut ptr: Box<_> = Box::new(Foo { x: 0 });
15 let mut test = |foo: &Foo| {
16 println!("access {}", foo.x);
17 ptr = Box::new(Foo { x: ptr.x + 1 });
18 println!("access {}", foo.x);
21 //~^ ERROR: cannot borrow `*ptr` as immutable