We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
NonZero
const PartialEq
1 parent a640415 commit d2cc0beCopy full SHA for d2cc0be
1 file changed
core/src/num/nonzero.rs
@@ -200,9 +200,10 @@ impl<T> UseCloned for NonZero<T> where T: ZeroablePrimitive {}
200
impl<T> Copy for NonZero<T> where T: ZeroablePrimitive {}
201
202
#[stable(feature = "nonzero", since = "1.28.0")]
203
-impl<T> PartialEq for NonZero<T>
+#[rustc_const_unstable(feature = "const_cmp", issue = "143800")]
204
+impl<T> const PartialEq for NonZero<T>
205
where
- T: ZeroablePrimitive + PartialEq,
206
+ T: ZeroablePrimitive + ~const PartialEq,
207
{
208
#[inline]
209
fn eq(&self, other: &Self) -> bool {
0 commit comments