diff --git a/library/std/tests/switch-stdout.rs b/library/std/tests/switch-stdout.rs index 2f01504043d..28ce6dfccd3 100644 --- a/library/std/tests/switch-stdout.rs +++ b/library/std/tests/switch-stdout.rs @@ -1,3 +1,5 @@ +#[cfg(any(target_family = "unix", target_family = "windows"))] + use std::fs::File; use std::io::{Read, Write};