diff --git a/src/librustc_driver/test.rs b/src/librustc_driver/test.rs index b8cd9bda7f02..2b6bb34b146c 100644 --- a/src/librustc_driver/test.rs +++ b/src/librustc_driver/test.rs @@ -98,7 +98,7 @@ fn errors(msgs: &[&str]) -> (Box, usize) { fn test_env(source_string: &str, args: (Box, usize), body: F) where - F: FnOnce(Env), + F: FnOnce(Env) + sync::Send, { syntax::with_globals(|| { let mut options = config::Options::default();