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