1 #![feature(generic_const_exprs)]
2 #![allow(incomplete_features)]
4 // library portion of regression test for #87674
5 pub struct Foo
<const N
: usize>([(); N
+ 1])
9 // library portion of regression test for #87603
10 pub struct S
<T
: Copy
+ Default
, const N
: usize>
16 impl<T
: Default
+ Copy
, const N
: usize> S
<T
, N
>
20 pub fn test() -> Self {
21 S { s: [T::default(); N * 2] }