]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/region-bound-on-closure-outlives-call.nll.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / regions / region-bound-on-closure-outlives-call.nll.stderr
1 error[E0505]: cannot move out of `f` because it is borrowed
2   --> $DIR/region-bound-on-closure-outlives-call.rs:12:25
3    |
4 LL |     (|x| f(x))(call_rec(f)) //~ ERROR cannot move out of `f`
5    |     --------------------^--
6    |     ||   |              |
7    |     ||   |              move out of `f` occurs here
8    |     ||   borrow occurs due to use in closure
9    |     |borrow of `f` occurs here
10    |     borrow later used here
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0505`.