diff options
| -rw-r--r-- | src/librustc_driver/test.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_driver/test.rs b/src/librustc_driver/test.rs index b8cd9bda7f0..2b6bb34b146 100644 --- a/src/librustc_driver/test.rs +++ b/src/librustc_driver/test.rs @@ -98,7 +98,7 @@ fn errors(msgs: &[&str]) -> (Box<dyn Emitter + sync::Send>, usize) { fn test_env<F>(source_string: &str, args: (Box<dyn Emitter + sync::Send>, usize), body: F) where - F: FnOnce(Env), + F: FnOnce(Env) + sync::Send, { syntax::with_globals(|| { let mut options = config::Options::default(); |
