rust-lang/rust — pull request #16807 by nham (2014-08-28 00:13:51+00:00)
Title: doc: Add another 'rule of ownership' to the guide

Inspired by [this question](http://stackoverflow.com/questions/25536654/rust-ownership-rules-in-the-context-of-closures/25537552) on Stack Overflow. I feel like maybe there is an ownership rule missing in section 18.2, which describes why you cannot do this:

```
fn main() {
let mut x = 5i;
let y = &x;
x = 6i; // error: cannot assign to `x` because it is borrowed
}
```

There is an example which shows this error in the closure section, but it actually has nothing to do with closures and more with a general principle of "the owner can't mutate what it owns while it has been borrowed"