rust/src/test/compile-fail/cap-clause-unresolved-copy.rs
2012-07-09 10:27:13 -07:00

7 lines
103 B
Rust

// error-pattern:unresolved name
fn main() {
let x = 5;
let y = fn~(copy z, copy x) {
};
}