From 9b27de41d4e00cb6c23df270572472fd4c6f47f8 Mon Sep 17 00:00:00 2001 From: John Renner Date: Fri, 20 Jul 2018 18:04:02 -0700 Subject: Introduce Custom Test Frameworks --- src/libtest/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libtest/lib.rs') diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index d993c6244fc..bf3cb7c537b 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -41,6 +41,7 @@ #![feature(panic_unwind)] #![feature(staged_api)] #![feature(termination_trait_lib)] +#![feature(test)] extern crate getopts; #[cfg(any(unix, target_os = "cloudabi"))] @@ -302,7 +303,7 @@ pub fn test_main(args: &[String], tests: Vec, options: Options) { // a Vec is used in order to effect ownership-transfer // semantics into parallel test runners, which in turn requires a Vec<> // rather than a &[]. -pub fn test_main_static(tests: &[TestDescAndFn]) { +pub fn test_main_static(tests: &[&TestDescAndFn]) { let args = env::args().collect::>(); let owned_tests = tests .iter() -- cgit 1.4.1-3-g733a5