fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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