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:
parent
5aae184415
commit
615f532475
@ -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;});
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user