]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/rfc-2632-const-trait-impl/call-generic-method-pass.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / rfc-2632-const-trait-impl / call-generic-method-pass.rs
index 74b0d5fbe474ba767110754fbf0ddf0cfb5ab22a..aee88d6053eee2cee24404f497867fe66abe009e 100644 (file)
@@ -4,7 +4,6 @@
 
 #![feature(const_trait_impl)]
 #![feature(const_fn_trait_bound)]
-#![allow(incomplete_features)]
 
 struct S;
 
@@ -12,6 +11,9 @@ impl const PartialEq for S {
     fn eq(&self, _: &S) -> bool {
         true
     }
+    fn ne(&self, other: &S) -> bool {
+        !self.eq(other)
+    }
 }
 
 const fn equals_self<T: PartialEq>(t: &T) -> bool {