Add a regression test for issue-82792

This commit is contained in:
JohnTitor 2021-03-29 17:31:12 +09:00
parent cc4103089f
commit 29d4a7d377

View File

@ -0,0 +1,14 @@
// Regression test for #82792.
// run-pass
#![feature(const_generics_defaults)]
#![allow(incomplete_features)]
#[repr(C)]
pub struct Loaf<T: Sized, const N: usize = 1usize> {
head: [T; N],
slice: [T],
}
fn main() {}