about summary refs log tree commit diff
path: root/library/core/tests/fmt/num.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/core/tests/fmt/num.rs')
-rw-r--r--library/core/tests/fmt/num.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/tests/fmt/num.rs b/library/core/tests/fmt/num.rs
index b958422d14f..b9ede65c9ff 100644
--- a/library/core/tests/fmt/num.rs
+++ b/library/core/tests/fmt/num.rs
@@ -126,7 +126,7 @@ fn test_format_int_exp_limits() {
 fn test_format_int_exp_precision() {
     //test that float and integer match
     let big_int: u32 = 314_159_265;
-    assert_eq!(format!("{:.1e}", big_int), format!("{:.1e}", f64::from(big_int)));
+    assert_eq!(format!("{big_int:.1e}"), format!("{:.1e}", f64::from(big_int)));
 
     //test adding precision
     assert_eq!(format!("{:.10e}", i8::MIN), "-1.2800000000e2");