We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c32571 commit 02adfe7Copy full SHA for 02adfe7
std/tests/win_delete_self.rs
@@ -2,6 +2,7 @@
2
3
/// Attempting to delete a running binary should return an error on Windows.
4
#[test]
5
+#[cfg_attr(miri, ignore)] // `remove_file` does not work in Miri on Windows
6
fn win_delete_self() {
7
let path = std::env::current_exe().unwrap();
8
assert!(std::fs::remove_file(path).is_err());
0 commit comments