]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/const-arg-type-arg-misordered.rs
Rollup merge of #106321 - compiler-errors:delayed-bug-backtrace, r=Nilstrieb
[rust.git] / tests / 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() {}