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