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

6 lines
102 B
Rust
Raw Normal View History

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