blob: b4b0bc7594305af98f6ac62b395a473007a836d6 [file] [log] [blame]
error[E0507]: cannot move out of borrowed content
--> $DIR/issue-51415.rs:16:46
|
LL | let opt = a.iter().enumerate().find(|(_, &s)| {
| ^-
| ||
| |hint: to prevent move, use `ref s` or `ref mut s`
| cannot move out of borrowed content
error: aborting due to previous error
For more information about this error, try `rustc --explain E0507`.