rust/src/test/compile-fail/cap-clause-double-move.rs
Niko Matsakis 55a2fd18ec implement capture clauses (move, in particular) and integrate
them into type state and so forth
2011-12-19 14:07:46 -08:00

6 lines
137 B
Rust

// error-pattern: error: Variable 'x' captured more than once
fn main() {
let x = 5;
let y = sendfn[move x, x]() -> int { x };
}