]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-arg-type-arg-misordered.rs
Rollup merge of #98640 - cuviper:stable-rust-analyzer, r=Mark-Simulacrum
[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() {}