diff options
Diffstat (limited to 'src/test/incremental/const-generics/hash-tyvid-regression-2.rs')
-rw-r--r-- | src/test/incremental/const-generics/hash-tyvid-regression-2.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/test/incremental/const-generics/hash-tyvid-regression-2.rs b/src/test/incremental/const-generics/hash-tyvid-regression-2.rs deleted file mode 100644 index 5cdd43cd7..000000000 --- a/src/test/incremental/const-generics/hash-tyvid-regression-2.rs +++ /dev/null @@ -1,18 +0,0 @@ -// revisions: cfail -#![feature(generic_const_exprs, adt_const_params)] -#![allow(incomplete_features)] -// regression test for #77650 -struct C<T, const N: core::num::NonZeroUsize>([T; N.get()]) -where - [T; N.get()]: Sized; -impl<'a, const N: core::num::NonZeroUsize, A, B: PartialEq<A>> PartialEq<&'a [A]> for C<B, N> -where - [B; N.get()]: Sized, -{ - fn eq(&self, other: &&'a [A]) -> bool { - self.0 == other - //~^ error: can't compare - } -} - -fn main() {} |