summary refs log tree commit diff
path: root/src/test/ui/const-generics/argument_order.rs
blob: 3446600d0495f647179637564c9847e958a776a0 (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

struct Bad<const N: usize, T> { //~ ERROR type parameters must be declared prior
    arr: [u8; { N }],
    another: T,
}

fn main() { }