File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
trunk/src/test/compile-fail Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 5aae184415c4bd882707d65d195e05dca4d04bd9
2
+ refs/heads/master: 615f5324754bdbb97998181cf1ada4c53337c7f3
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change 1
- // error-pattern:tried to deinitialize a variable declared in a different
1
+ // error-pattern:moving out of immutable upvar
2
2
fn force ( f : fn ( ) ) { f ( ) ; }
3
3
fn main ( ) {
4
- let x = @{ x: 17 , y: 2 } ;
4
+ let mut x = @{ x: 17 , y: 2 } ;
5
5
let y = @{ x: 5 , y: 5 } ;
6
6
7
7
force ( { || x <- y; } ) ;
Original file line number Diff line number Diff line change 1
- // error-pattern:tried to deinitialize a variable declared in a different
1
+ // error-pattern:moving out of immutable upvar
2
2
fn test ( -x : uint ) { }
3
3
4
4
fn main ( ) {
You can’t perform that action at this time.
0 commit comments