> 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)?