summary refs log tree commit diff
path: root/src/test/ui/issues/issue-2590.rs
blob: 28d023db4f5b52c2e667712c5c2c7ff8d6009589 (plain)
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() {}