fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
381 B12 linesraw
1error[E0508]: cannot move out of type `[D; 4]`, a non-copy array
2  --> $DIR/move-out-of-array-1.rs:17:5
3   |
4LL |     a[i]
5   |     ^^^^
6   |     |
7   |     cannot move out of here
8   |     move occurs because `a[_]` has type `D`, which does not implement the `Copy` trait
9
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0508`.