mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-02 16:34:34 +01:00
moved to stable compiler
This commit is contained in:
parent
5d985df284
commit
7d26d9f45e
2 changed files with 14 additions and 18 deletions
|
@ -14,12 +14,10 @@ error[E0499]: cannot borrow `c.shared` as mutable more than once at a time
|
||||||
error[E0499]: cannot borrow `c` as mutable more than once at a time
|
error[E0499]: cannot borrow `c` as mutable more than once at a time
|
||||||
--> ui/lockall_borrow_shared.rs:20:23
|
--> ui/lockall_borrow_shared.rs:20:23
|
||||||
|
|
|
|
||||||
20 | c.shared.lock(|_| {
|
20 | c.shared.lock(|_| {
|
||||||
| - ---- ^^^ second mutable borrow occurs here
|
| -------- ---- ^^^ second mutable borrow occurs here
|
||||||
| | |
|
| | |
|
||||||
| _________| first borrow later used by call
|
| | first borrow later used by call
|
||||||
| |
|
| first mutable borrow occurs here
|
||||||
21 | | c.shared.lock(|_| {}); // borrow error
|
21 | c.shared.lock(|_| {}); // borrow error
|
||||||
| | -------- second borrow occurs due to use of `c` in closure
|
| -------- second borrow occurs due to use of `c` in closure
|
||||||
22 | | });
|
|
||||||
| |__________- first mutable borrow occurs here
|
|
||||||
|
|
|
@ -14,12 +14,10 @@ error[E0499]: cannot borrow `c.shared` as mutable more than once at a time
|
||||||
error[E0499]: cannot borrow `c` as mutable more than once at a time
|
error[E0499]: cannot borrow `c` as mutable more than once at a time
|
||||||
--> ui/lockall_borrow_shared_a.rs:20:23
|
--> ui/lockall_borrow_shared_a.rs:20:23
|
||||||
|
|
|
|
||||||
20 | c.shared.lock(|_| {
|
20 | c.shared.lock(|_| {
|
||||||
| - ---- ^^^ second mutable borrow occurs here
|
| -------- ---- ^^^ second mutable borrow occurs here
|
||||||
| | |
|
| | |
|
||||||
| _________| first borrow later used by call
|
| | first borrow later used by call
|
||||||
| |
|
| first mutable borrow occurs here
|
||||||
21 | | c.shared.a.lock(|_| {}); // borrow error
|
21 | c.shared.a.lock(|_| {}); // borrow error
|
||||||
| | ---------- second borrow occurs due to use of `c` in closure
|
| ---------- second borrow occurs due to use of `c` in closure
|
||||||
22 | | });
|
|
||||||
| |__________- first mutable borrow occurs here
|
|
||||||
|
|
Loading…
Reference in a new issue