summary refs log tree commit diff
path: root/src/test/ui/const-generics/derive-debug-array-wrapper.rs
blob: eee634c15644bfab28b57f843e4608a0096ee655 (plain)
1
2
3
4
5
6
7
8
9
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash

#[derive(Debug)]
struct X<const N: usize> {
    a: [u32; N], //~ ERROR arrays only have std trait implementations for lengths 0..=32
}

fn main() {}