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.
1 parent c5fea4a commit 1ebb62fCopy full SHA for 1ebb62f
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