blob: 13fd87f1e3e574a565606e9ff5be2022d96c69fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// 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() {}
|