]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/2229_closure_analysis/match/match-edge-cases_2.stderr
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / ui / closures / 2229_closure_analysis / match / match-edge-cases_2.stderr
1 error[E0505]: cannot move out of `ts` because it is borrowed
2   --> $DIR/match-edge-cases_2.rs:32:22
3    |
4 LL |     let _b = || { match ts {
5    |              --         -- borrow occurs due to use in closure
6    |              |
7    |              borrow of `ts` occurs here
8 ...
9 LL |     let mut mut_ts = ts;
10    |                      ^^ move out of `ts` occurs here
11 LL |
12 LL |     _b();
13    |     -- borrow later used here
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0505`.