]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/derive-debug-array-wrapper.rs
Auto merge of #79578 - alexcrichton:update-waasi, r=KodrAus
[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
8 #[derive(Debug)]
9 struct X<const N: usize> {
10     a: [u32; N],
11 }
12
13 fn main() {}