diff options
Diffstat (limited to 'tests/ui/traits/const-traits/call-generic-method-pass.rs')
| -rw-r--r-- | tests/ui/traits/const-traits/call-generic-method-pass.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/ui/traits/const-traits/call-generic-method-pass.rs b/tests/ui/traits/const-traits/call-generic-method-pass.rs index af793b8da03..aa52a7b9e47 100644 --- a/tests/ui/traits/const-traits/call-generic-method-pass.rs +++ b/tests/ui/traits/const-traits/call-generic-method-pass.rs @@ -1,8 +1,7 @@ //! Basic test for calling methods on generic type parameters in `const fn`. //@ compile-flags: -Znext-solver -//@ known-bug: #110395 -// FIXME(const_trait_impl) check-pass +//@ check-pass #![feature(const_trait_impl)] @@ -17,7 +16,7 @@ impl const PartialEq for S { } } -const fn equals_self<T: ~const PartialEq>(t: &T) -> bool { +const fn equals_self<T: [const] PartialEq>(t: &T) -> bool { *t == *t } |
