55a2fd18ec
them into type state and so forth
6 lines
137 B
Rust
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 };
|
|
}
|