use dvec::DVec; type parser = { tokens: DVec, }; trait parse { fn parse() -> ~[int]; } impl parser: parse { fn parse() -> ~[int] { dvec::unwrap(move self.tokens) //~ ERROR moving out of immutable field } } fn main() {}