Skip to content

Commit 9f81074

Browse files
committed
---
yaml --- r: 13148 b: refs/heads/master c: 615f532 h: refs/heads/master v: v3
1 parent 1935ad7 commit 9f81074

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 5aae184415c4bd882707d65d195e05dca4d04bd9
2+
refs/heads/master: 615f5324754bdbb97998181cf1ada4c53337c7f3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/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;});

trunk/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)