Hacker News new | ask | show | jobs
by dbrgn 3122 days ago
This is actually not true. You can't do it in stable rust, but on nightly slice destructuring has been possible for a while now (just as the compile error indicates).

See:

- https://doc.rust-lang.org/unstable-book/language-features/sl...

- https://doc.rust-lang.org/unstable-book/language-features/ad...