about summary refs log tree commit diff
path: root/src/test/run-pass/nullable-pointer-iotareduction.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/nullable-pointer-iotareduction.rs')
-rw-r--r--src/test/run-pass/nullable-pointer-iotareduction.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/nullable-pointer-iotareduction.rs b/src/test/run-pass/nullable-pointer-iotareduction.rs
index 0c66b139e7c..9d7130ecb8c 100644
--- a/src/test/run-pass/nullable-pointer-iotareduction.rs
+++ b/src/test/run-pass/nullable-pointer-iotareduction.rs
@@ -44,7 +44,7 @@ macro_rules! check_option {
         assert!(option::None::<$T>.is_none());
         let e = $e;
         let s_ = option::Some::<$T>(e);
-        let $v = s_.get_ref();
+        let $v = s_.as_ref().unwrap();
         $chk
     }}
 }