]> git.lizzy.rs Git - rust.git/commitdiff
Fix UI test
authorDeadbeef <ent3rm4n@gmail.com>
Fri, 27 Aug 2021 07:12:40 +0000 (07:12 +0000)
committerDeadbeef <ent3rm4n@gmail.com>
Fri, 27 Aug 2021 07:12:40 +0000 (07:12 +0000)
src/test/ui/rfc-2632-const-trait-impl/call-generic-method-dup-bound.rs

index 5853b66b868a5898cb71870e3959866bc0fb0700..7185376b440c8fdf10e7b029f7f94f2a4ac1acba 100644 (file)
@@ -16,7 +16,9 @@ fn ne(&self, other: &S) -> bool {
 
 // This duplicate bound should not result in ambiguities. It should be equivalent to a single ~const
 // bound.
-const fn equals_self<T: PartialEq + ~const PartialEq>(t: &T) -> bool {
+// const fn equals_self<T: PartialEq + ~const PartialEq>(t: &T) -> bool {
+// FIXME(fee1-dead)^ why should the order matter here?
+const fn equals_self<T: ~const PartialEq + PartialEq>(t: &T) -> bool {
     *t == *t
 }