diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-01-30 11:05:34 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-04-12 20:58:14 +0200 |
| commit | 1ef7585c9ef976211b897e22fad6ae9aa2c2f415 (patch) | |
| tree | 38f020fd0c5d8cdb772e2eefd404d4d11aebb456 /tests/ui/codegen/equal-pointers-unequal/strict-provenance/zero.rs | |
| parent | 25f17dd8254588300f7bc431d586f3b7c4ee2df1 (diff) | |
| download | rust-1ef7585c9ef976211b897e22fad6ae9aa2c2f415.tar.gz rust-1ef7585c9ef976211b897e22fad6ae9aa2c2f415.zip | |
Update weirdly failing ui tests
Diffstat (limited to 'tests/ui/codegen/equal-pointers-unequal/strict-provenance/zero.rs')
| -rw-r--r-- | tests/ui/codegen/equal-pointers-unequal/strict-provenance/zero.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/codegen/equal-pointers-unequal/strict-provenance/zero.rs b/tests/ui/codegen/equal-pointers-unequal/strict-provenance/zero.rs index d963e45e4cd..20ed991ed3d 100644 --- a/tests/ui/codegen/equal-pointers-unequal/strict-provenance/zero.rs +++ b/tests/ui/codegen/equal-pointers-unequal/strict-provenance/zero.rs @@ -23,7 +23,7 @@ fn main() { // It's not zero, which means `a` and `b` are not equal. assert_ne!(i, 0); // But it looks like zero... - assert_eq!(i.to_string(), "0"); + assert_eq!(format!("{i}"), "0"); // ...and now it *is* zero? assert_eq!(i, 0); // So `a` and `b` are equal after all? |
