blob: 8b0722916dbfe1a2dbb84976cbc2edef306e2e83 [file] [log] [blame]
error[E0507]: cannot move out of borrowed content
--> $DIR/borrowck-move-error-with-note.rs:11:11
|
LL | match *f {
| ^^ cannot move out of borrowed content
LL |
LL | Foo::Foo1(num1,
| ---- hint: to prevent move, use `ref num1` or `ref mut num1`
LL | num2) => (),
| ---- ...and here (use `ref num2` or `ref mut num2`)
LL | Foo::Foo2(num) => (),
| --- ...and here (use `ref num` or `ref mut num`)
error[E0509]: cannot move out of type `S`, which implements the `Drop` trait
--> $DIR/borrowck-move-error-with-note.rs:30:9
|
LL | / S {
LL | |
LL | | f: _s,
| | -- hint: to prevent move, use `ref _s` or `ref mut _s`
LL | | g: _t
| | -- ...and here (use `ref _t` or `ref mut _t`)
LL | | } => {}
| |_________^ cannot move out of here
error[E0507]: cannot move out of borrowed content
--> $DIR/borrowck-move-error-with-note.rs:47:11
|
LL | match a.a {
| ^ cannot move out of borrowed content
LL |
LL | n => {
| - hint: to prevent move, use `ref n` or `ref mut n`
error: aborting due to 3 previous errors
Some errors occurred: E0507, E0509.
For more information about an error, try `rustc --explain E0507`.