]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/derive-debug-array-wrapper.rs
Auto merge of #79342 - CDirkx:ipaddr-const, r=oli-obk
[rust.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 #![cfg_attr(min, feature(min_const_generics))]
8
9 #[derive(Debug)]
10 struct X<const N: usize> {
11     a: [u32; N],
12 }
13
14 fn main() {}