]> git.lizzy.rs Git - rust.git/blobdiff - library/core/tests/ptr.rs
Merge commit '370c397ec9169809e5ad270079712e0043514240' into sync_cg_clif-2022-03-20
[rust.git] / library / core / tests / ptr.rs
index 9c65871ac4b4cfc9fa4190b76fbf9e01e8cf9b00..af8e78f1f4e169edd1d8cdf5f0fc518d2ba6348f 100644 (file)
@@ -550,7 +550,7 @@ fn dyn_metadata() {
     assert_eq!(meta.align_of(), std::mem::align_of::<Something>());
     assert_eq!(meta.layout(), std::alloc::Layout::new::<Something>());
 
-    assert!(format!("{:?}", meta).starts_with("DynMetadata(0x"));
+    assert!(format!("{meta:?}").starts_with("DynMetadata(0x"));
 }
 
 #[test]