]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-arg-type-arg-misordered.rs
Move generic error message to separate branches
[rust.git] / src / test / ui / const-generics / const-arg-type-arg-misordered.rs
1 type Array<T, const N: usize> = [T; N];
2
3 fn foo<const N: usize>() -> Array<N, ()> {
4     //~^ ERROR constant provided when a type was expected
5     unimplemented!()
6 }
7
8 fn main() {}