mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Fix UI test
This commit is contained in:
parent
80e1ee5aee
commit
580ca930ac
@ -16,7 +16,9 @@ impl const PartialEq for S {
|
||||
|
||||
// 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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user