1 // Check that dynamically sized rvalues are forbidden
3 #![feature(box_syntax)]
6 let _x: Box<str> = box *"hello world";
8 //~^^ ERROR cannot move out of a shared reference
10 let array: &[isize] = &[1, 2, 3];
11 let _x: Box<[isize]> = box *array;
13 //~^^ ERROR cannot move out of type `[isize]`, a non-copy slice