You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0382]: use of moved value: `arr[..]`
--> src/main.rs:8:12
|
8 | let [a,b]=arr;
| - ^ value used here after move
| |
| value moved here
|
= note: move occurs because `arr[..]` has type `Foo`, which does not implement the `Copy` trait
Compiler Version: 1.26
Consider the following code:
Compiling will produce the following error:
The odd part is this works with tuple patterns:
The text was updated successfully, but these errors were encountered: