about summary refs log tree commit diff
path: root/src/test/compile-fail/borrowck-move-by-capture.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/borrowck-move-by-capture.rs')
-rw-r--r--src/test/compile-fail/borrowck-move-by-capture.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/borrowck-move-by-capture.rs b/src/test/compile-fail/borrowck-move-by-capture.rs
index 20212762188..b0d546cd5c8 100644
--- a/src/test/compile-fail/borrowck-move-by-capture.rs
+++ b/src/test/compile-fail/borrowck-move-by-capture.rs
@@ -13,6 +13,6 @@
 pub fn main() {
     let bar = box 3;
     let _g = |&mut:| {
-        let _h = move |:| -> int { *bar }; //~ ERROR cannot move out of captured outer variable
+        let _h = move |:| -> isize { *bar }; //~ ERROR cannot move out of captured outer variable
     };
 }