mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-29 21:40:27 +00:00
10 lines
360 B
Plaintext
10 lines
360 B
Plaintext
error[E0499]: cannot borrow `q` as mutable more than once at a time
|
|
--> ui/freeze.rs:7:5
|
|
|
|
|
6 | let (_p, mut _c) = q.split();
|
|
| --------- first mutable borrow occurs here
|
|
7 | q.enqueue(0).unwrap();
|
|
| ^^^^^^^^^^^^ second mutable borrow occurs here
|
|
8 | _c.dequeue();
|
|
| ------------ first borrow later used here
|