summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/const-arg-type-arg-misordered.rs
blob: 8ee17e637aa3028f994a0145d7abe2d7636c4b85 (plain)
1
2
3
4
5
6
7
8
type Array<T, const N: usize> = [T; N];

fn foo<const N: usize>() -> Array<N, ()> {
    //~^ ERROR constant provided when a type was expected
    unimplemented!()
}

fn main() {}