1 error[E0499]: cannot borrow `*heap` as mutable more than once at a time
2 --> $DIR/issue-85581.rs:9:22
4 LL | match heap.peek_mut() {
7 | first mutable borrow occurs here
8 | a temporary with access to the first borrow is created here ...
9 LL | Some(_) => { heap.pop(); },
10 | ^^^^^^^^^^ second mutable borrow occurs here
13 | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `Option<PeekMut<'_, i32>>`
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0499`.