]> git.lizzy.rs Git - rust.git/blobdiff - library/core/tests/clone.rs
Auto merge of #95685 - oxidecomputer:restore-static-dwarf, r=pnkfelix
[rust.git] / library / core / tests / clone.rs
index c97a87aebce4154b8a92d8f1a4ffb4b65b0f5b5e..33ca9f2c6a3a1ef0995101c28e622d4c72bdf941 100644 (file)
@@ -8,8 +8,8 @@ fn test_borrowed_clone() {
 
 #[test]
 fn test_clone_from() {
-    let a = box 5;
-    let mut b = box 10;
+    let a = Box::new(5);
+    let mut b = Box::new(10);
     b.clone_from(&a);
     assert_eq!(*b, 5);
 }