aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rust/pin-init/examples/pthread_mutex.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/pin-init/examples/pthread_mutex.rs b/rust/pin-init/examples/pthread_mutex.rs
index c709dabba7eb..6c4d18238956 100644
--- a/rust/pin-init/examples/pthread_mutex.rs
+++ b/rust/pin-init/examples/pthread_mutex.rs
@@ -139,7 +139,7 @@ mod pthread_mtx {
}
}
-#[cfg_attr(test, test)]
+#[cfg_attr(all(test, not(miri)), test)]
fn main() {
#[cfg(all(any(feature = "std", feature = "alloc"), not(windows)))]
{