]> git.lizzy.rs Git - rust.git/blob - src/test/ui/by-move-pattern-binding.nll.stderr
4ba9b3aeb5d5da423591f7b3554db573cdaad917
[rust.git] / src / test / ui / by-move-pattern-binding.nll.stderr
1 error[E0507]: cannot move out of borrowed content
2   --> $DIR/by-move-pattern-binding.rs:24:11
3    |
4 LL |     match &s.x {
5    |           ^^^^ cannot move out of borrowed content
6 LL |         &E::Foo => {}
7 LL |         &E::Bar(identifier) => f(identifier.clone())  //~ ERROR cannot move
8    |                 ----------
9    |                 |
10    |                 data moved here
11    |                 help: to prevent move, use ref or ref mut: `ref identifier`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0507`.