8a9df5aa38
this is the final part of #1273
6 lines
129 B
Rust
6 lines
129 B
Rust
// error-pattern:variable 'x' captured more than once
|
|
fn main() {
|
|
let x = 5;
|
|
let y = fn~(move x, copy x) -> int { x };
|
|
}
|