]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/derive-debug-array-wrapper.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / const-generics / derive-debug-array-wrapper.rs
1 // Check that deriving debug on struct with const is permitted.
2 // run-pass
3 // revisions: full min
4
5 #![cfg_attr(full, feature(const_generics))]
6 #![cfg_attr(full, allow(incomplete_features))]
7
8 #[derive(Debug)]
9 struct X<const N: usize> {
10 a: [u32; N],
11 }
12
13 fn main() {}