fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
493 B12 linesraw
1error[E0507]: cannot move out of index of `MyVec<std::boxed::Box<i32>>`
2  --> $DIR/borrowck-overloaded-index-move-from-vec.rs:20:15
3   |
4LL |     let bad = v[0];
5   |               ^^^^
6   |               |
7   |               move occurs because value has type `std::boxed::Box<i32>`, which does not implement the `Copy` trait
8   |               help: consider borrowing here: `&v[0]`
9
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0507`.