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
2 changed files with 3 additions and 3 deletions
|
@ -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 force(f: fn()) { f(); }
|
||||||
fn main() {
|
fn main() {
|
||||||
let x = @{x: 17, y: 2};
|
let mut x = @{x: 17, y: 2};
|
||||||
let y = @{x: 5, y: 5};
|
let y = @{x: 5, y: 5};
|
||||||
|
|
||||||
force({|| x <- y;});
|
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 test(-x: uint) {}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
Loading…
Reference in a new issue