rust/src/test/compile-fail/cap-clause-unresolved-copy.rs

7 lines
103 B
Rust
Raw Normal View History

// error-pattern:unresolved name
2011-12-17 21:12:30 -08:00
fn main() {
let x = 5;
let y = fn~(copy z, copy x) {
2011-12-17 21:12:30 -08:00
};
}