about summary refs log tree commit diff
path: root/src/test/ui/const-generics/derive-debug-array-wrapper.rs
blob: ce1481d97e9b485765aa7c78c57fc00975e3e8e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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))]

#[derive(Debug)]
struct X<const N: usize> {
    a: [u32; N],
}

fn main() {}