]> git.proxmox.com Git - rustc.git/blobdiff - src/libtest/stats.rs
New upstream version 1.16.0+dfsg1
[rustc.git] / src / libtest / stats.rs
index 1883f0aba23eb940acc0b97a08a95e047be4040a..993fb703e51ddc79e095adc8baf4abe35e656db6 100644 (file)
@@ -120,7 +120,7 @@ pub trait Stats {
 }
 
 /// Extracted collection of all the summary statistics of a sample set.
-#[derive(Clone, PartialEq)]
+#[derive(Clone, PartialEq, Copy)]
 #[allow(missing_docs)]
 pub struct Summary {
     pub sum: f64,
@@ -896,4 +896,7 @@ mod bench {
             v.sum();
         })
     }
+
+    #[bench]
+    pub fn no_iter(_: &mut Bencher) {}
 }