]> git.lizzy.rs Git - rust.git/blobdiff - src/libarena/lib.rs
Rollup merge of #23056 - awlnx:master, r=nrc
[rust.git] / src / libarena / lib.rs
index b2ac9a34b0269fc7f7daa3157eefd6f2d356659b..01fb8e3587240ecd6b342c67605e96d869013744 100644 (file)
@@ -583,11 +583,11 @@ pub fn bench_copy(b: &mut Bencher) {
     #[bench]
     pub fn bench_copy_nonarena(b: &mut Bencher) {
         b.iter(|| {
-            box Point {
+            let _: Box<_> = box Point {
                 x: 1,
                 y: 2,
                 z: 3,
-            }
+            };
         })
     }
 
@@ -636,10 +636,10 @@ pub fn bench_noncopy(b: &mut Bencher) {
     #[bench]
     pub fn bench_noncopy_nonarena(b: &mut Bencher) {
         b.iter(|| {
-            box Noncopy {
+            let _: Box<_> = box Noncopy {
                 string: "hello world".to_string(),
                 array: vec!( 1, 2, 3, 4, 5 ),
-            }
+            };
         })
     }