We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79603f5 commit bbda995Copy full SHA for bbda995
src/test/compile-fail/cap-clause-use-after-move.rs
@@ -1,7 +1,5 @@
1
-// error-pattern:Unsatisfied precondition constraint
2
-
3
fn main() {
4
let x = 5;
5
let _y = fn~(move x) { };
6
- let _z = x; //< error: Unsatisfied precondition constraint
+ let _z = x; //~ ERROR use of moved variable: `x`
7
}
0 commit comments