]> git.lizzy.rs Git - rust.git/blobdiff - library/core/tests/alloc.rs
Add a dedicated length-prefixing method to `Hasher`
[rust.git] / library / core / tests / alloc.rs
index 628ac3a45ff04d49f6c66e26fad1d77ed4012ea6..6762c0319e5cf92a561e8e69576103b7f5728fa9 100644 (file)
@@ -17,7 +17,7 @@ fn layout_debug_shows_log2_of_alignment() {
     // `Debug` is not stable, but here's what it does right now
     let layout = Layout::from_size_align(24576, 8192).unwrap();
     let s = format!("{:?}", layout);
-    assert_eq!(s, "Layout { size_: 24576, align_: 8192 (1 << 13) }");
+    assert_eq!(s, "Layout { size: 24576, align: 8192 (1 << 13) }");
 }
 
 // Running this normally doesn't do much, but it's also run in Miri, which