9 lines
196 B
Rust
9 lines
196 B
Rust
// error-pattern:Tried to deinitialize a variable declared in a different
|
|
fn force(f: fn()) { f(); }
|
|
fn main() {
|
|
let x = @{x: 17, y: 2};
|
|
let y = @{x: 5, y: 5};
|
|
|
|
force({|| x <- y;});
|
|
}
|