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 5aae184 commit 615f532Copy full SHA for 615f532
src/test/compile-fail/block-deinitializes-upvar.rs
@@ -1,7 +1,7 @@
1
-// error-pattern:tried to deinitialize a variable declared in a different
+// error-pattern:moving out of immutable upvar
2
fn force(f: fn()) { f(); }
3
fn main() {
4
- let x = @{x: 17, y: 2};
+ let mut x = @{x: 17, y: 2};
5
let y = @{x: 5, y: 5};
6
7
force({|| x <- y;});
src/test/compile-fail/issue-1965.rs
@@ -1,4 +1,4 @@
fn test(-x: uint) {}
0 commit comments