mirror of
https://gitee.com/openharmony/third_party_rust_syn
synced 2024-11-27 01:41:05 +00:00
3eaa443c3a
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>` |
||
---|---|---|
.. | ||
common | ||
crates | ||
debug | ||
features | ||
macros | ||
regression | ||
repo | ||
regression.rs | ||
test_asyncness.rs | ||
test_attribute.rs | ||
test_derive_input.rs | ||
test_expr.rs | ||
test_generics.rs | ||
test_grouping.rs | ||
test_ident.rs | ||
test_item.rs | ||
test_iterators.rs | ||
test_lit.rs | ||
test_meta.rs | ||
test_parse_buffer.rs | ||
test_parse_stream.rs | ||
test_pat.rs | ||
test_path.rs | ||
test_precedence.rs | ||
test_receiver.rs | ||
test_round_trip.rs | ||
test_shebang.rs | ||
test_should_parse.rs | ||
test_size.rs | ||
test_stmt.rs | ||
test_token_trees.rs | ||
test_ty.rs | ||
test_visibility.rs | ||
zzz_stable.rs |