Update UI-test output lockall_borrow_shared

This commit is contained in:
Henrik Tjäder 2022-02-05 01:24:31 +01:00
parent fde331fdf9
commit 247e66e0f8
2 changed files with 22 additions and 18 deletions

View file

@ -7,17 +7,19 @@ error[E0499]: cannot borrow `c.shared` as mutable more than once at a time
| _________| first borrow later used by call
| |
21 | | c.shared.lock(|_| {}); // borrow error
| | -------- first borrow occurs due to use of `c` in closure
| | -------- first borrow occurs due to use of `c.shared` in closure
22 | | });
| |__________^ second mutable borrow occurs here
error[E0499]: cannot borrow `c` as mutable more than once at a time
error[E0499]: cannot borrow `c.shared` 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
| first mutable borrow occurs here
21 | c.shared.lock(|_| {}); // borrow error
| -------- second borrow occurs due to use of `c` in closure
| _________| first borrow later used by call
| |
21 | | c.shared.lock(|_| {}); // borrow error
| | -------- second borrow occurs due to use of `c.shared` in closure
22 | | });
| |__________- first mutable borrow occurs here

View file

@ -7,17 +7,19 @@ error[E0499]: cannot borrow `c.shared` as mutable more than once at a time
| _________| first borrow later used by call
| |
21 | | c.shared.a.lock(|_| {}); // borrow error
| | ---------- first borrow occurs due to use of `c` in closure
| | ---------- first borrow occurs due to use of `c.shared.a` in closure
22 | | });
| |__________^ second mutable borrow occurs here
error[E0499]: cannot borrow `c` as mutable more than once at a time
error[E0499]: cannot borrow `c.shared.a` 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
| first mutable borrow occurs here
21 | c.shared.a.lock(|_| {}); // borrow error
| ---------- second borrow occurs due to use of `c` in closure
| _________| first borrow later used by call
| |
21 | | c.shared.a.lock(|_| {}); // borrow error
| | ---------- second borrow occurs due to use of `c.shared.a` in closure
22 | | });
| |__________- first mutable borrow occurs here