//@only-target-linux: home_dir is only supported on Linux //@compile-flags: -Zmiri-disable-isolation use std::env; fn main() { env::remove_var("HOME"); // make sure we enter the interesting codepath #[allow(deprecated)] env::home_dir().unwrap(); }