about summary refs log tree commit diff
path: root/src/test/run-pass/overload-index-operator.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/overload-index-operator.rs')
-rw-r--r--src/test/run-pass/overload-index-operator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/overload-index-operator.rs b/src/test/run-pass/overload-index-operator.rs
index 0f83a8e730e..8de802e1fc9 100644
--- a/src/test/run-pass/overload-index-operator.rs
+++ b/src/test/run-pass/overload-index-operator.rs
@@ -36,7 +36,7 @@ impl<K:Eq,V:Clone> Index<K,V> for AssociationList<K,V> {
                 return pair.value.clone();
             }
         }
-        fail!("No value found for key: %?", index);
+        fail2!("No value found for key: {:?}", index);
     }
 }