3 #![feature(slice_patterns)]
5 fn array() -> [(String, String); 3] {
9 // Const Index + Const Index
11 fn move_out_from_begin_and_one_from_end() {
17 fn move_out_from_begin_field_and_end_field() {
19 let [_, _, (_x, _)] = a;
20 let [.., (_, _y)] = a;
23 // Const Index + Slice
25 fn move_out_by_const_index_and_subslice() {
31 fn move_out_by_const_index_end_and_subslice() {
37 fn move_out_by_const_index_field_and_subslice() {
39 let [(_x, _), _, _] = a;
43 fn move_out_by_const_index_end_field_and_subslice() {
45 let [.., (_x, _)] = a;
49 fn move_out_by_const_subslice_and_index_field() {
52 let [(_x, _), _, _] = a;
55 fn move_out_by_const_subslice_and_end_index_field() {
58 let [.., (_x, _)] = a;
63 fn move_out_by_subslice_and_subslice() {
65 let [x @ .., _, _] = a;