1 error[E0507]: cannot move out of borrowed content
2 --> $DIR/borrowck-move-error-with-note.rs:11:11
5 | ^^ cannot move out of borrowed content
8 | ---- hint: to prevent move, use `ref num1` or `ref mut num1`
10 | ---- ...and here (use `ref num2` or `ref mut num2`)
11 LL | Foo::Foo2(num) => (),
12 | --- ...and here (use `ref num` or `ref mut num`)
14 error[E0509]: cannot move out of type `S`, which implements the `Drop` trait
15 --> $DIR/borrowck-move-error-with-note.rs:30:9
20 | | -- hint: to prevent move, use `ref _s` or `ref mut _s`
22 | | -- ...and here (use `ref _t` or `ref mut _t`)
24 | |_________^ cannot move out of here
26 error[E0507]: cannot move out of borrowed content
27 --> $DIR/borrowck-move-error-with-note.rs:47:11
30 | ^ cannot move out of borrowed content
33 | - hint: to prevent move, use `ref n` or `ref mut n`
35 error: aborting due to 3 previous errors
37 Some errors have detailed explanations: E0507, E0509.
38 For more information about an error, try `rustc --explain E0507`.