2018-12-16 21:21:47 -06:00
|
|
|
struct Parser {
|
2015-01-08 04:54:35 -06:00
|
|
|
tokens: Vec<isize> ,
|
2013-03-01 12:44:43 -06:00
|
|
|
}
|
2012-06-21 19:41:40 -05:00
|
|
|
|
2018-12-16 21:21:47 -06:00
|
|
|
trait Parse {
|
2015-01-08 04:54:35 -06:00
|
|
|
fn parse(&self) -> Vec<isize> ;
|
2012-07-11 17:00:40 -05:00
|
|
|
}
|
|
|
|
|
2018-12-16 21:21:47 -06:00
|
|
|
impl Parse for Parser {
|
2015-01-08 04:54:35 -06:00
|
|
|
fn parse(&self) -> Vec<isize> {
|
2019-05-05 06:02:32 -05:00
|
|
|
self.tokens //~ ERROR cannot move out
|
2012-06-21 19:41:40 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|