|
LL | let y = &x;
| -- immutable borrow occurs here
-LL |
+LL |
LL | let q = &raw mut x;
| ^^^^^^^^^^ mutable borrow occurs here
-LL |
+LL |
LL | drop(y);
| - immutable borrow later used here
|
LL | let y = &mut x;
| ------ mutable borrow occurs here
-LL |
+LL |
LL | let p = &raw const x;
| ^^^^^^^^^^^^ immutable borrow occurs here
...
...
LL | let q = &raw mut x;
| ^^^^^^^^^^ second mutable borrow occurs here
-LL |
+LL |
LL | drop(y);
| - first borrow later used here