We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4bff74 commit 9e83478Copy full SHA for 9e83478
library/core/src/ops/bit.rs
@@ -68,6 +68,17 @@ macro_rules! not_impl {
68
69
not_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
70
71
+#[stable(feature = "not_never", since = "1.58.0")]
72
+#[rustc_const_unstable(feature = "const_ops", issue = "90080")]
73
+impl const Not for ! {
74
+ type Output = !;
75
+
76
+ #[inline]
77
+ fn not(self) -> ! {
78
+ match self {}
79
+ }
80
+}
81
82
/// The bitwise AND operator `&`.
83
///
84
/// Note that `Rhs` is `Self` by default, but this is not mandatory.
0 commit comments