We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a995068 + a2ba8ac commit 66529b7Copy full SHA for 66529b7
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