error[E0505]: cannot move out of `leak` because it is borrowed --> tests/ui/leak_iref_parsing_input.rs:22:10 | 12 | let mut pi = ParsingInput::new(Box::new(input), |iref| { | ------ borrow of `leak` occurs here 13 | let leak_mut = &mut leak; | ---- borrow occurs due to use in closure ... 22 | drop(leak); | ^^^^ move out of `leak` occurs here 23 | } | - borrow might be used here, when `pi` is dropped and runs the destructor for type `ParsingInput>>>`