rust/tests/ui-fulldeps/create-dir-all-bare.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
249 B
Rust
Raw Normal View History

// 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();
}