Skip to content

Commit

Permalink
Revert "cap-clause-use-after-move: modernize error msg"
Browse files Browse the repository at this point in the history
This reverts commit bbda995.
  • Loading branch information
catamorphism committed Oct 8, 2012
1 parent 5b415c7 commit a477c5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/compile-fail/cap-clause-use-after-move.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// error-pattern:Unsatisfied precondition constraint

fn main() {
let x = 5;
let _y = fn~(move x) { };
let _z = x; //~ ERROR use of moved variable: `x`
let _z = x; //< error: Unsatisfied precondition constraint
}

0 comments on commit a477c5a

Please sign in to comment.