Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
error[E0505]: cannot move out of `p` because it is borrowed --> tests/test_iterators.rs:56:18 | 54 | for element in &p { | -- | | | borrow of `p` occurs here | a temporary with access to the borrow is created here ... 55 | if *element == 2 { 56 | drop(p); | ^ move out of `p` occurs here ... 59 | } | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `syn::punctuated::Iter<'_, i32>` error[E0505]: cannot move out of `p` because it is borrowed --> tests/test_iterators.rs:64:18 | 62 | for element in &mut p { | ------ | | | borrow of `p` occurs here | a temporary with access to the borrow is created here ... 63 | if *element == 2 { 64 | drop(p); | ^ move out of `p` occurs here ... 67 | } | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `syn::punctuated::IterMut<'_, i32>`
- Loading branch information