Skip to content

Commit 247e66e

Browse files
author
Henrik Tjäder
committed
Update UI-test output lockall_borrow_shared
1 parent fde331f commit 247e66e

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

ui/lockall_borrow_shared.stderr

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@ error[E0499]: cannot borrow `c.shared` as mutable more than once at a time
77
| _________| first borrow later used by call
88
| |
99
21 | | c.shared.lock(|_| {}); // borrow error
10-
| | -------- first borrow occurs due to use of `c` in closure
10+
| | -------- first borrow occurs due to use of `c.shared` in closure
1111
22 | | });
1212
| |__________^ second mutable borrow occurs here
1313

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

ui/lockall_borrow_shared_a.stderr

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@ error[E0499]: cannot borrow `c.shared` as mutable more than once at a time
77
| _________| first borrow later used by call
88
| |
99
21 | | c.shared.a.lock(|_| {}); // borrow error
10-
| | ---------- first borrow occurs due to use of `c` in closure
10+
| | ---------- first borrow occurs due to use of `c.shared.a` in closure
1111
22 | | });
1212
| |__________^ second mutable borrow occurs here
1313

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

0 commit comments

Comments
 (0)