]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/defaults/repr-c-issue-82792.rs
Rollup merge of #106766 - GuillaumeGomez:rm-stripper-dead-code, r=notriddle
[rust.git] / tests / ui / const-generics / defaults / repr-c-issue-82792.rs
1 // Regression test for #82792.
2
3 // run-pass
4
5 #[repr(C)]
6 pub struct Loaf<T: Sized, const N: usize = 1> {
7     head: [T; N],
8     slice: [T],
9 }
10
11 fn main() {}