mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
Add a regression test for issue-82792
This commit is contained in:
@@ -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() {}
|
||||
Reference in New Issue
Block a user