cap-clause-use-after-move: modernize error msg

This commit is contained in:
Niko Matsakis 2012-10-08 08:38:03 -07:00
parent 79603f573e
commit bbda995bfe

View file

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