]> git.lizzy.rs Git - rust.git/blob - src/test/ui/by-move-pattern-binding.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / by-move-pattern-binding.stderr
1 error[E0507]: cannot move out of borrowed content
2   --> $DIR/by-move-pattern-binding.rs:26:9
3    |
4 LL |         &E::Bar(identifier) => f(identifier.clone())  //~ ERROR cannot move
5    |         ^^^^^^^^----------^
6    |         |       |
7    |         |       hint: to prevent move, use `ref identifier` or `ref mut identifier`
8    |         cannot move out of borrowed content
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0507`.