diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2021-08-27 07:12:40 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2021-08-27 07:12:40 +0000 |
| commit | 580ca930ac6423dd1dc6a1d90f9d899c8fb5e562 (patch) | |
| tree | ba462a197dfd9a086fd65bbd2a0a241b3875876b /src/test | |
| parent | 80e1ee5aeeadf6b1bd5f272a9c94f67ba57d6248 (diff) | |
| download | rust-580ca930ac6423dd1dc6a1d90f9d899c8fb5e562.tar.gz rust-580ca930ac6423dd1dc6a1d90f9d899c8fb5e562.zip | |
Fix UI test
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/rfc-2632-const-trait-impl/call-generic-method-dup-bound.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/ui/rfc-2632-const-trait-impl/call-generic-method-dup-bound.rs b/src/test/ui/rfc-2632-const-trait-impl/call-generic-method-dup-bound.rs index 5853b66b868..7185376b440 100644 --- a/src/test/ui/rfc-2632-const-trait-impl/call-generic-method-dup-bound.rs +++ b/src/test/ui/rfc-2632-const-trait-impl/call-generic-method-dup-bound.rs @@ -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 } |
