Skip to content

Commit a477c5a

Browse files
committed
Revert "cap-clause-use-after-move: modernize error msg"
This reverts commit bbda995.
1 parent 5b415c7 commit a477c5a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
// error-pattern:Unsatisfied precondition constraint
2+
13
fn main() {
24
let x = 5;
35
let _y = fn~(move x) { };
4-
let _z = x; //~ ERROR use of moved variable: `x`
6+
let _z = x; //< error: Unsatisfied precondition constraint
57
}

0 commit comments

Comments
 (0)