rust/src/test/ui/by-move-pattern-binding.stderr
Vadim Petrochenkov fa72a81bea Update tests
2019-03-11 23:10:26 +03:00

12 lines
458 B
Text

error[E0507]: cannot move out of borrowed content
--> $DIR/by-move-pattern-binding.rs:16:9
|
LL | &E::Bar(identifier) => f(identifier.clone())
| ^^^^^^^^----------^
| | |
| | hint: to prevent move, use `ref identifier` or `ref mut identifier`
| cannot move out of borrowed content
error: aborting due to previous error
For more information about this error, try `rustc --explain E0507`.