rust/tests/ui-fulldeps/create-dir-all-bare.rs
2023-01-11 09:32:08 +00:00

12 lines
249 B
Rust

// run-pass
use std::env;
use std::fs;
use std::path::PathBuf;
fn main() {
let path = PathBuf::from(env::var_os("RUST_TEST_TMPDIR").unwrap());
env::set_current_dir(&path).unwrap();
fs::create_dir_all("create-dir-all-bare").unwrap();
}