static -> const; change remaining of x.as_slice() to x[].
rustup.