2012-06-21 19:41:40 -05:00
|
|
|
import dvec::dvec;
|
|
|
|
|
|
|
|
type parser = {
|
|
|
|
tokens: dvec<int>,
|
|
|
|
};
|
|
|
|
|
2012-07-11 17:00:40 -05:00
|
|
|
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] {
|
2012-08-13 20:15:20 -05:00
|
|
|
dvec::unwrap(move self.tokens) //~ ERROR illegal move from self
|
2012-06-21 19:41:40 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|