1 error[E0507]: cannot move out of borrowed content
2 --> $DIR/issue-51415.rs:16:42
4 LL | let opt = a.iter().enumerate().find(|(_, &s)| {
8 | | help: to prevent move, use ref or ref mut: `ref s`
9 | cannot move out of borrowed content
11 error: aborting due to previous error
13 For more information about this error, try `rustc --explain E0507`.