summary refs log tree commit diff
path: root/src/test/compile-fail/cap-clause-use-after-move.rs
blob: 0b30036112d6f91553f2ca68837f76ae14d43fc5 (plain)
1
2
3
4
5
6
7
// error-pattern:Unsatisfied precondition constraint

fn main() {
    let x = 5;
    let _y = fn~[move x]() { };
    let _z = x; //< error: Unsatisfied precondition constraint
}