5a63b2100e
Got some of the debug messages, here, too. I figure it doesn't hurt to get used to doing this even in places where users won't ever see it.
6 lines
129 B
Rust
6 lines
129 B
Rust
// error-pattern:variable `x` captured more than once
|
|
fn main() {
|
|
let x = 5;
|
|
let y = fn~(copy x, copy x) -> int { x };
|
|
}
|