moved to stable compiler

This commit is contained in:
Per Lindgren 2021-10-26 20:30:07 +02:00
parent 721c919c58
commit 82947e3a59
2 changed files with 14 additions and 18 deletions

View file

@ -15,11 +15,9 @@ error[E0499]: cannot borrow `c` as mutable more than once at a time
--> ui/lockall_borrow_shared.rs:20:23
|
20 | c.shared.lock(|_| {
| - ---- ^^^ second mutable borrow occurs here
| -------- ---- ^^^ second mutable borrow occurs here
| | |
| _________| first borrow later used by call
| |
21 | | c.shared.lock(|_| {}); // borrow error
| | -------- second borrow occurs due to use of `c` in closure
22 | | });
| |__________- first mutable borrow occurs here
| | first borrow later used by call
| first mutable borrow occurs here
21 | c.shared.lock(|_| {}); // borrow error
| -------- second borrow occurs due to use of `c` in closure

View file

@ -15,11 +15,9 @@ error[E0499]: cannot borrow `c` as mutable more than once at a time
--> ui/lockall_borrow_shared_a.rs:20:23
|
20 | c.shared.lock(|_| {
| - ---- ^^^ second mutable borrow occurs here
| -------- ---- ^^^ second mutable borrow occurs here
| | |
| _________| first borrow later used by call
| |
21 | | c.shared.a.lock(|_| {}); // borrow error
| | ---------- second borrow occurs due to use of `c` in closure
22 | | });
| |__________- first mutable borrow occurs here
| | first borrow later used by call
| first mutable borrow occurs here
21 | c.shared.a.lock(|_| {}); // borrow error
| ---------- second borrow occurs due to use of `c` in closure