Closed
Description
UPDATE: There are some initial mentoring instructions below.
fn main() {
let v = vec![String::from("oh no")];
let e = v[0];
}
suggests
error[E0507]: cannot move out of indexed content
--> <anon>:4:13
|
4 | let e = v[0];
| - ^^^^ cannot move out of indexed content
| |
| hint: to prevent move, use `ref e` or `ref mut e`
let ref e
is not idiomatic here, so this is misleading (and confusing, frankly)
cc @eevee