6 lines
128 B
Rust
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) { };
|
|
}
|