rust/src/test/compile-fail/issue-2590.rs
2012-07-17 15:46:43 -07:00

18 lines
264 B
Rust

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