]> git.lizzy.rs Git - rust.git/blob - tests/ui/moves/move-out-of-array-1.stderr
Rollup merge of #107576 - P1n3appl3:master, r=tmandry
[rust.git] / tests / ui / moves / move-out-of-array-1.stderr
1 error[E0508]: cannot move out of type `[D; 4]`, a non-copy array
2   --> $DIR/move-out-of-array-1.rs:17:5
3    |
4 LL |     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
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0508`.