summary refs log tree commit diff
path: root/src/test/ui/const-generics/derive-debug-array-wrapper.rs
blob: a29cb90ebb79ab8caac3b410d0e55a0642dd11a4 (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 `[u32; _]` doesn't implement `std::fmt::Debug`
}

fn main() {}