Remove use of ~[T].

Fixes build with latest rust.