---
# System prepended metadata

title: 'Example: Moving Struct with Borrows'

---

## Source
```rust=
struct T {}
struct S<'a> { f: &'a mut T }
fn main () {
    let mut t = T{};
    let mut s = S { f: &mut t };
    let mut r = &mut s;
    // t = T{};
    let r1 = r;
    t = T{};
}
```