10 lines
266 B
Rust
10 lines
266 B
Rust
//@ignore-target-windows: home_dir is not supported on Windows
|
|
//@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();
|
|
}
|