test: Update test with current error message

These errors where previously generated by typestate, but there seem to
be other passes that cover this now.
This commit is contained in:
Brian Anderson 2012-05-31 00:06:06 -07:00
parent 5aae184415
commit 615f532475
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
// error-pattern:tried to deinitialize a variable declared in a different
// error-pattern:moving out of immutable upvar
fn force(f: fn()) { f(); }
fn main() {
let x = @{x: 17, y: 2};
let mut x = @{x: 17, y: 2};
let y = @{x: 5, y: 5};
force({|| x <- y;});

View file

@ -1,4 +1,4 @@
// error-pattern:tried to deinitialize a variable declared in a different
// error-pattern:moving out of immutable upvar
fn test(-x: uint) {}
fn main() {