summary refs log tree commit diff
path: root/src/test/ui/by-move-pattern-binding.stderr
blob: a20de4ba42a5b68aed1d4c3cdbd9b14e8e41ad77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0507]: cannot move out of borrowed content
  --> $DIR/by-move-pattern-binding.rs:26:9
   |
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`.