Skip to content

Commit

Permalink
Update UI-test output lockall_borrow_shared
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrik Tjäder committed Feb 5, 2022
1 parent fde331f commit 247e66e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
20 changes: 11 additions & 9 deletions ui/lockall_borrow_shared.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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
| | |
| | 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
20 | c.shared.lock(|_| {
| - ---- ^^^ 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.shared` in closure
22 | | });
| |__________- first mutable borrow occurs here
20 changes: 11 additions & 9 deletions ui/lockall_borrow_shared_a.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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
| | |
| | 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
20 | c.shared.lock(|_| {
| - ---- ^^^ 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.shared.a` in closure
22 | | });
| |__________- first mutable borrow occurs here

0 comments on commit 247e66e

Please sign in to comment.