Add a regression test for issue-82792
This commit is contained in:
parent
cc4103089f
commit
29d4a7d377
14
src/test/ui/const-generics/defaults/repr-c-issue-82792.rs
Normal file
14
src/test/ui/const-generics/defaults/repr-c-issue-82792.rs
Normal 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() {}
|
Loading…
x
Reference in New Issue
Block a user