summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-2590.rs
blob: a9a0e5ca4ec162cbeb7e5ea7d7e8cd51aff3cddd (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
    }
}

fn main() {}