]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-2632-const-trait-impl/call-const-trait-method-pass.rs
Rollup merge of #86852 - Amanieu:remove_doc_aliases, r=joshtriplett
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / call-const-trait-method-pass.rs
index ec6f45f956d75d8c77d21aacb749b3535baa965d..44814b0654e91f12d5b868c9f016f67085fc566a 100644 (file)
@@ -17,6 +17,9 @@ impl const PartialEq for Int {
     fn eq(&self, rhs: &Self) -> bool {
         self.0 == rhs.0
     }
+    fn ne(&self, other: &Self) -> bool {
+        !self.eq(other)
+    }
 }
 
 pub trait Plus {