Added import for enum

[this push](https://github.com/rust-lang/rust/pull/18973) breaks the existing master.  This pull request fixes it.