]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/broken-mir-2.rs
2c93ed0defdfe65a253357e5eca4d8f0c34c126d
[rust.git] / src / test / ui / const-generics / broken-mir-2.rs
1 #![feature(const_generics)]
2 //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
3
4 use std::fmt::Debug;
5
6 #[derive(Debug)]
7 struct S<T: Debug, const N: usize>([T; N]); //~ ERROR `[T; N]` doesn't implement `std::fmt::Debug`
8
9 fn main() {}