2 #![feature(generic_const_exprs, adt_const_params)]
3 #![allow(incomplete_features)]
4 // regression test for #77650
5 struct C<T, const N: core::num::NonZeroUsize>([T; N.get()])
8 impl<'a, const N: core::num::NonZeroUsize, A, B: PartialEq<A>> PartialEq<&'a [A]> for C<B, N>
12 fn eq(&self, other: &&'a [A]) -> bool {
14 //~^ error: can't compare