1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
struct Parser { tokens: Vec<isize> , } trait Parse { fn parse(&self) -> Vec<isize> ; } impl Parse for Parser { fn parse(&self) -> Vec<isize> { self.tokens //~ ERROR cannot move out of borrowed content } } fn main() {}