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 d047f02fe2f..7c6ad45a9ef 100644
--- a/src/test/run-pass/overload-index-operator.rs
+++ b/src/test/run-pass/overload-index-operator.rs
@@ -35,7 +35,7 @@ impl<K: PartialEq + std::fmt::Show, V:Clone> Index<K,V> for AssociationList<K,V>
                 return &pair.value
             }
         }
-        fail!("No value found for key: {}", index);
+        panic!("No value found for key: {}", index);
     }
 }