1 #![feature(box_syntax)]
2 #![feature(slice_patterns)]
4 fn move_out_from_begin_and_end() {
5 let a = [box 1, box 2];
7 let [.., _y] = a; //~ ERROR [E0382]
10 fn move_out_by_const_index_and_subslice() {
11 let a = [box 1, box 2];
13 let [_y..] = a; //~ ERROR [E0382]