]>
git.proxmox.com Git - rustc.git/blob - tests/ui/borrowck/borrowck-move-out-from-array-no-overlap.rs
3 fn array() -> [(String
, String
); 3] {
7 // Const Index + Const Index
9 fn move_out_from_begin_and_one_from_end() {
15 fn move_out_from_begin_field_and_end_field() {
17 let [_
, _
, (_x
, _
)] = a
;
18 let [.., (_
, _y
)] = a
;
21 // Const Index + Slice
23 fn move_out_by_const_index_and_subslice() {
29 fn move_out_by_const_index_end_and_subslice() {
35 fn move_out_by_const_index_field_and_subslice() {
37 let [(_x
, _
), _
, _
] = a
;
41 fn move_out_by_const_index_end_field_and_subslice() {
43 let [.., (_x
, _
)] = a
;
47 fn move_out_by_const_subslice_and_index_field() {
50 let [(_x
, _
), _
, _
] = a
;
53 fn move_out_by_const_subslice_and_end_index_field() {
56 let [.., (_x
, _
)] = a
;
61 fn move_out_by_subslice_and_subslice() {
63 let [x @
.., _
, _
] = a
;