From 9c5ae20c5952824614a3d2c67a467f2c0d0d9d86 Mon Sep 17 00:00:00 2001 From: leocth Date: Sun, 26 Jun 2022 10:48:17 +0800 Subject: [PATCH] forgot about the feature flag in the doctest --- library/core/src/sync/atomic.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs index 92afdab2999..b974b431b78 100644 --- a/library/core/src/sync/atomic.rs +++ b/library/core/src/sync/atomic.rs @@ -872,6 +872,7 @@ pub fn fetch_xor(&self, val: bool, order: Ordering) -> bool { /// # Examples /// /// ``` + /// #![feature(atomic_bool_fetch_not)] /// use std::sync::atomic::{AtomicBool, Ordering}; /// /// let foo = AtomicBool::new(true); -- 2.44.0