rust/tests/ui/const-generics/defaults/repr-c-issue-82792.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
155 B
Rust
Raw Normal View History

2021-03-29 03:31:12 -05:00
// Regression test for #82792.
//@ run-pass
#[repr(C)]
pub struct Loaf<T: Sized, const N: usize = 1> {
2021-03-29 03:31:12 -05:00
head: [T; N],
slice: [T],
}
fn main() {}