Skip to content

Commit bbda995

Browse files
committed
cap-clause-use-after-move: modernize error msg
1 parent 79603f5 commit bbda995

File tree

1 file changed

+1
-3
lines changed

1 file changed

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

0 commit comments

Comments
 (0)