rust/src/test/compile-fail/issue-2590.rs
Niko Matsakis 5d540de769 fixup mutability of vec::each, make iter_bytes pure
also, change DVec() to work with imm vectors rather than mut ones
2012-09-12 13:29:31 -07:00

17 lines
245 B
Rust

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