title: Can Box move its contents when the whole Box is moved?
body: <p>If I <code>Box::new</code> a value, take a pointer to it (the borrow checker won't allow to take a reference, since I'm about to move the box), and then move the <code>Box</code>, can a move of the value (e.g. a reallocation) happen?</p>
  <p>I thought that <code>Box</code> just stores the values address, so that moving the <code>Box</code> would only move the address. Is there therefore a reason why borrow checker prohibits moving it when its contents are <em>immutably</em> borrowed?</p>
  <p><a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=316a1ba2109f009ea095aa74a85827f3" rel="nofollow noreferrer">Playground</a></p>