rust/src/test/ui/by-move-pattern-binding.stderr

13 lines
481 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0507]: cannot move out of borrowed content
2018-12-25 09:56:47 -06:00
--> $DIR/by-move-pattern-binding.rs:16:9
2018-08-08 07:28:26 -05:00
|
LL | &E::Bar(identifier) => f(identifier.clone()) //~ ERROR cannot move
| ^^^^^^^^----------^
| | |
| | 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`.