From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui-fulldeps/create-dir-all-bare.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/ui-fulldeps/create-dir-all-bare.rs (limited to 'tests/ui-fulldeps/create-dir-all-bare.rs') diff --git a/tests/ui-fulldeps/create-dir-all-bare.rs b/tests/ui-fulldeps/create-dir-all-bare.rs new file mode 100644 index 000000000..4554680ec --- /dev/null +++ b/tests/ui-fulldeps/create-dir-all-bare.rs @@ -0,0 +1,11 @@ +// 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(); +} -- cgit v1.2.3