2012-09-05 14:32:05 -05:00
|
|
|
use dvec::DVec;
|
2012-06-21 19:41:40 -05:00
|
|
|
|
|
|
|
type parser = {
|
2012-08-14 18:54:13 -05:00
|
|
|
tokens: DVec<int>,
|
2012-06-21 19:41:40 -05:00
|
|
|
};
|
|
|
|
|
2012-07-11 17:00:40 -05:00
|
|
|
trait parse {
|
2012-09-12 12:38:17 -05:00
|
|
|
fn parse() -> ~[int];
|
2012-07-11 17:00:40 -05:00
|
|
|
}
|
|
|
|
|
2012-08-07 20:10:06 -05:00
|
|
|
impl parser: parse {
|
2012-09-12 12:38:17 -05:00
|
|
|
fn parse() -> ~[int] {
|
2012-10-08 13:49:01 -05:00
|
|
|
dvec::unwrap(move self.tokens) //~ ERROR moving out of immutable field
|
2012-06-21 19:41:40 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|