1 error[E0502]: cannot borrow `v` as mutable because it is also borrowed as immutable
2 --> $DIR/issue-82462.rs:18:9
4 LL | for x in DroppingSlice(&*v).iter() {
7 | | immutable borrow occurs here
8 | a temporary with access to the immutable borrow is created here ...
10 | ^^^^^^^^^^ mutable borrow occurs here
13 | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `DroppingSlice`
15 help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0502`.