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