rust/src/test/run-pass/cap-clause-not-used.rs
2012-05-04 12:33:08 -07:00

6 lines
128 B
Rust

// error-pattern: warning: Captured variable 'y' not used in closure
fn main() {
let x = 5;
let _y = fn~(copy x) { };
}