rust/src/test/compile-fail/issue-2590.rs
2012-08-15 14:14:20 -07:00

17 lines
256 B
Rust

import dvec::DVec;
type parser = {
tokens: DVec<int>,
};
trait parse {
fn parse() -> ~[mut int];
}
impl parser: parse {
fn parse() -> ~[mut int] {
dvec::unwrap(move self.tokens) //~ ERROR illegal move from self
}
}
fn main() {}