Closed
Description
let x = vec![String::from("foo")].into_boxed_slice();
let y = x[0];
// error: cannot move out of type `[std::string::String]`, a non-copy fixed-size array [--explain E0508]
It refers to the slice as a fixed-sized array. This can also be reproduced with a Vec<String>
by indexing (*x)[0]
instead of indexing x[0]
.