unary move is not integrated into borrowck #3071

Closed
nikomatsakis opened this Issue Aug 1, 2012 · 1 comment

Comments

Projects
None yet
1 participant
Contributor

nikomatsakis commented Aug 1, 2012

This should fail:

fn foo(+x: ~int) -> int {
    let y = &*x;
    free(move x);
    *y
}

fn free(+x: ~int) {
}

fn main() {
}

but it does not. Should be a simple fix, add the appropriate line to check_loans.rs

Contributor

nikomatsakis commented Aug 3, 2012

Fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment