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 5aff157 commit a04e5caCopy full SHA for a04e5ca
[refs]
@@ -1,5 +1,5 @@
1
---
2
-refs/heads/master: 1795cda1b7f87d1217dd04d580289cd46fb43310
+refs/heads/master: 8e1f1e3b5208873e94f6de95c1f0f0b690a7aa89
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
trunk/src/test/compile-fail/kindck-implicit-close-over-mut-var.rs
@@ -1,10 +1,10 @@
-fn use(_i: int) {}
+fn user(_i: int) {}
fn foo() {
// Here, i is *moved* into the closure: Not actually OK
let mut i = 0;
6
do task::spawn {
7
- use(i); //~ ERROR mutable variables cannot be implicitly captured
+ user(i); //~ ERROR mutable variables cannot be implicitly captured
8
}
9
10
0 commit comments