]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-51415.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / borrowck / issue-51415.stderr
1 error[E0507]: cannot move out of borrowed content
2   --> $DIR/issue-51415.rs:16:46
3    |
4 LL |     let opt = a.iter().enumerate().find(|(_, &s)| {
5    |                                              ^-
6    |                                              ||
7    |                                              |hint: to prevent move, use `ref s` or `ref mut s`
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`.