Add required slicing_syntax feature gate.

Fixes a broken build on the latest rust.