We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f43527a commit 7ec129dCopy full SHA for 7ec129d
[refs]
@@ -1,5 +1,5 @@
1
---
2
-refs/heads/master: 5b415c73723d33df735e2688515c3354975133cc
+refs/heads/master: a477c5af203e75cced729e85f9b54e8f2516502e
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
trunk/src/test/compile-fail/cap-clause-use-after-move.rs
@@ -1,5 +1,7 @@
+// error-pattern:Unsatisfied precondition constraint
+
fn main() {
let x = 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