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 80e1ee5 commit 580ca93Copy full SHA for 580ca93
src/test/ui/rfc-2632-const-trait-impl/call-generic-method-dup-bound.rs
@@ -16,7 +16,9 @@ impl const PartialEq for S {
16
17
// This duplicate bound should not result in ambiguities. It should be equivalent to a single ~const
18
// bound.
19
-const fn equals_self<T: PartialEq + ~const PartialEq>(t: &T) -> bool {
+// const fn equals_self<T: PartialEq + ~const PartialEq>(t: &T) -> bool {
20
+// FIXME(fee1-dead)^ why should the order matter here?
21
+const fn equals_self<T: ~const PartialEq + PartialEq>(t: &T) -> bool {
22
*t == *t
23
}
24
0 commit comments