Skip to content

Commit f7e0857

Browse files
committed
Test that src path of rename is no longer a file
1 parent 38204b6 commit f7e0857

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/run-pass/fs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ fn main() {
9191
let file = File::create(&path1).unwrap();
9292
drop(file);
9393
rename(&path1, &path2).unwrap();
94+
assert_eq!(ErrorKind::NotFound, path1.metadata().unwrap_err().kind());
9495
assert!(path2.metadata().unwrap().is_file());
9596
remove_file(&path2).ok();
9697

0 commit comments

Comments
 (0)