blob: 716edd21982e98b5c86c9ded0ea430a37dced579 [file] [log] [blame]
error[E0499]: cannot borrow `void` as mutable more than once at a time
--> $DIR/mut-borrow-outside-loop.rs:17:23
|
16 | let first = &mut void;
| ---- first mutable borrow occurs here
17 | let second = &mut void; //~ ERROR cannot borrow
| ^^^^ second mutable borrow occurs here
...
25 | }
| - first borrow ends here
error[E0499]: cannot borrow `inner_void` as mutable more than once at a time
--> $DIR/mut-borrow-outside-loop.rs:23:33
|
22 | let inner_first = &mut inner_void;
| ---------- first mutable borrow occurs here
23 | let inner_second = &mut inner_void; //~ ERROR cannot borrow
| ^^^^^^^^^^ second mutable borrow occurs here
24 | }
| - first borrow ends here
error: aborting due to 2 previous errors