18 lines
252 B
Rust
18 lines
252 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 moving out of immutable field
|
|
}
|
|
}
|
|
|
|
fn main() {}
|