Skip to content

Commit 615f532

Browse files
committed
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.
1 parent 5aae184 commit 615f532

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/test/compile-fail/block-deinitializes-upvar.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// error-pattern:tried to deinitialize a variable declared in a different
1+
// error-pattern:moving out of immutable upvar
22
fn force(f: fn()) { f(); }
33
fn main() {
4-
let x = @{x: 17, y: 2};
4+
let mut x = @{x: 17, y: 2};
55
let y = @{x: 5, y: 5};
66

77
force({|| x <- y;});

src/test/compile-fail/issue-1965.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// error-pattern:tried to deinitialize a variable declared in a different
1+
// error-pattern:moving out of immutable upvar
22
fn test(-x: uint) {}
33

44
fn main() {

0 commit comments

Comments
 (0)