>> instead &'static [~"foo", ~"bar"] would fail to compile because vectors are not allowed in constant expressions.

> Are you sure? I'm pretty sure vector slices are allowed, unless changed recently (or in this PR)?

Yup, latest master.

@alexcrichton  As mentioned [here](https://github.com/mozilla/rust/pull/11979/files#r9862181) there are some match cases missing. I'll work fix this.