We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f5ef076 + 1ebb62f commit 4a19af1Copy full SHA for 4a19af1
src/test/run-pass/stat.rs
@@ -20,7 +20,7 @@ use std::uint;
20
21
pub fn main() {
22
let dir = tempfile::mkdtemp(&Path("."), "").unwrap();
23
- let path = dir.with_filename("file");
+ let path = dir.push("file");
24
25
{
26
match io::file_writer(&path, [io::Create, io::Truncate]) {
@@ -36,5 +36,6 @@ pub fn main() {
36
assert!(path.exists());
37
assert_eq!(path.get_size(), Some(1000));
38
39
+ os::remove_file(&path);
40
os::remove_dir(&dir);
41
}
0 commit comments