We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffc47de commit 0079249Copy full SHA for 0079249
tests/run-pass/file_manipulation.rs
@@ -23,4 +23,8 @@ fn main() {
23
assert_eq!(bytes, contents.as_slice());
24
// Removing file should succeed
25
remove_file(path).unwrap();
26
+ // Opening non-existing file should fail
27
+ assert!(File::open(path).is_err());
28
+ // Removing non-existing file should fail
29
+ assert!(remove_file(path).is_err());
30
}
0 commit comments