10 lines
261 B
Rust
10 lines
261 B
Rust
|
//@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();
|
||
|
}
|