We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3e5f489 + 2f3c943 commit ffa8a96Copy full SHA for ffa8a96
library/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