about summary refs log tree commit diff
path: root/src/libtest/lib.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2015-03-30 09:40:52 -0400
committerNiko Matsakis <niko@alum.mit.edu>2015-04-01 11:23:45 -0400
commitc35c46821a69af14e6b38e0238f70e22433a3e8e (patch)
tree7ac8c7a22194415f47c035622f5df59517f8b5bd /src/libtest/lib.rs
parent49b76a087bbbca3771c8b98125ecb59f7bfe80e6 (diff)
downloadrust-c35c46821a69af14e6b38e0238f70e22433a3e8e.tar.gz
rust-c35c46821a69af14e6b38e0238f70e22433a3e8e.zip
Fallout in public-facing and semi-public-facing libs
Diffstat (limited to 'src/libtest/lib.rs')
-rw-r--r--src/libtest/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs
index f7e5c9f1dee..521961215dd 100644
--- a/src/libtest/lib.rs
+++ b/src/libtest/lib.rs
@@ -193,7 +193,7 @@ impl fmt::Debug for TestFn {
 /// This is fed into functions marked with `#[bench]` to allow for
 /// set-up & tear-down before running a piece of code repeatedly via a
 /// call to `iter`.
-#[derive(Copy)]
+#[derive(Copy, Clone)]
 pub struct Bencher {
     iterations: u64,
     dur: Duration,
@@ -280,7 +280,7 @@ pub fn test_main_static(args: env::Args, tests: &[TestDescAndFn]) {
     test_main(&args, owned_tests)
 }
 
-#[derive(Copy)]
+#[derive(Copy, Clone)]
 pub enum ColorConfig {
     AutoColor,
     AlwaysColor,