]> git.lizzy.rs Git - rust.git/commitdiff
librustrt: fix fallout
authorJorge Aparicio <japaricious@gmail.com>
Fri, 5 Dec 2014 15:52:51 +0000 (10:52 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Sat, 13 Dec 2014 22:03:46 +0000 (17:03 -0500)
src/librustrt/args.rs

index d94f731e75c6450e3e24aeaf4fb9296b12440e64..4632eca4d0fd54262903f2391202651b0c6540ae 100644 (file)
@@ -128,7 +128,7 @@ fn smoke_test() {
             assert!(take() == Some(expected.clone()));
             assert!(take() == None);
 
-            (|| {
+            (|&mut:| {
             }).finally(|| {
                 // Restore the actual global state.
                 match saved_value {