rust/src/test/compile-fail/issue-2590.rs

18 lines
253 B
Rust
Raw Normal View History

2012-09-05 14:32:05 -05:00
use dvec::DVec;
type parser = {
2012-08-14 18:54:13 -05:00
tokens: DVec<int>,
};
trait parse {
fn parse() -> ~[mut int];
}
2012-08-07 20:10:06 -05:00
impl parser: parse {
2012-07-14 14:19:36 -05:00
fn parse() -> ~[mut int] {
dvec::unwrap(move self.tokens) //~ ERROR illegal move from self
}
}
fn main() {}