rust/src/test/ui/const-generics/derive-debug-array-wrapper.rs
2020-08-12 08:30:17 +00:00

14 lines
316 B
Rust

// Check that deriving debug on struct with const is permitted.
// run-pass
// revisions: full min
#![cfg_attr(full, feature(const_generics))]
#![cfg_attr(full, allow(incomplete_features))]
#![cfg_attr(min, feature(min_const_generics))]
#[derive(Debug)]
struct X<const N: usize> {
a: [u32; N],
}
fn main() {}