about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/core/tests/nonzero.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/tests/nonzero.rs b/library/core/tests/nonzero.rs
index ca449b4350e..b66c482c5e5 100644
--- a/library/core/tests/nonzero.rs
+++ b/library/core/tests/nonzero.rs
@@ -85,7 +85,7 @@ fn test_match_option_string() {
     let five = "Five".to_string();
     match Some(five) {
         Some(s) => assert_eq!(s, "Five"),
-        None => panic!("unexpected None while matching on Some(String { ... })"),
+        None => panic!("{}", "unexpected None while matching on Some(String { ... })"),
     }
 }