I was following a tutorial on how to setup the piston library, but when I tried to compile it I got the following error message:
error[E0658]: slice pattern syntax is experimental (see issue #23121)
--> /home/alexander/.cargo/registry/src/github.com-1ecc6299db9ec823/stb_truetype-0.2.4/src/lib.rs:606:13
|
606 | let [g1, g2] = if self.index_to_loc_format == 0 {
| ^^^^^^^^
I am using the same versions of all the libraries and the same code, what did I do wrong?