2016-07-13 17:53:42 -04:00
|
|
|
error[E0509]: cannot move out of type `S`, which implements the `Drop` trait
|
2016-08-16 16:52:30 +09:00
|
|
|
--> $DIR/overlapping_spans.rs:21:9
|
2016-07-13 17:53:42 -04:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | S {f:_s} => {} //~ ERROR cannot move out
|
2016-07-13 17:53:42 -04:00
|
|
|
| ^^^^^--^
|
|
|
|
| | |
|
|
|
|
| | hint: to prevent move, use `ref _s` or `ref mut _s`
|
|
|
|
| cannot move out of here
|
|
|
|
|
2017-07-02 13:49:30 +03:00
|
|
|
error: aborting due to previous error
|
2016-07-13 17:53:42 -04:00
|
|
|
|
2018-02-19 21:40:25 +01:00
|
|
|
If you want more information on this error, try using "rustc --explain E0509"
|