// revisions: cfail #![feature(generic_const_exprs, adt_const_params)] #![allow(incomplete_features)] // regression test for #77650 struct C([T; N.get()]) where [T; N.get()]: Sized; impl<'a, const N: core::num::NonZeroUsize, A, B: PartialEq> PartialEq<&'a [A]> for C where [B; N.get()]: Sized, { fn eq(&self, other: &&'a [A]) -> bool { self.0 == other //~^ error: can't compare } } fn main() {}