blob: da6ebaaefadf1a6d28c21d47920e8591a9ee1337 [file] [log] [blame]
error[E0505]: cannot move out of `f` because it is borrowed
--> $DIR/region-bound-on-closure-outlives-call.rs:12:25
|
LL | (|x| f(x))(call_rec(f)) //~ ERROR cannot move out of `f`
| --------------------^--
| || | |
| || | move out of `f` occurs here
| || borrow occurs due to use in closure
| |borrow of `f` occurs here
| borrow later used here
error: aborting due to previous error
For more information about this error, try `rustc --explain E0505`.