18 lines
251 B
Rust
18 lines
251 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(self.tokens) //~ ERROR illegal move from self
|
|
}
|
|
}
|
|
|
|
fn main() {}
|