error[E0499]: cannot borrow `cursor` as mutable more than once at a time
--> tests/errors/cursor_lends.rs:10:2
|
9 | let i = cursor.current();
| ------ first mutable borrow occurs here
10 | cursor.move_next();
| ^^^^^^ second mutable borrow occurs here
11 | let _ = *i;
| -- first borrow later used here