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 de9ca643f07..237212e7eb7 100644
--- a/src/test/run-pass/nullable-pointer-iotareduction.rs
+++ b/src/test/run-pass/nullable-pointer-iotareduction.rs
@@ -76,7 +76,7 @@ pub fn main() {
     check_type!(&17: &int);
     check_type!(~18: ~int);
     check_type!(@19: @int);
-    check_type!(~"foo": ~str);
+    check_type!("foo".to_owned(): ~str);
     check_type!(vec!(20, 22): Vec<int> );
     let mint: uint = unsafe { cast::transmute(main) };
     check_type!(main: fn(), |pthing| {