]> git.proxmox.com Git - rustc.git/blob - tests/ui/const-generics/const-arg-type-arg-misordered.rs
New upstream version 1.68.2+dfsg1
[rustc.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() {}