]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/const-arg-type-arg-misordered.rs
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / const-generics / const-arg-type-arg-misordered.rs
1 // revisions: full min
2 #![cfg_attr(full, feature(const_generics))]
3 #![cfg_attr(full, allow(incomplete_features))]
4
5 type Array<T, const N: usize> = [T; N];
6
7 fn foo<const N: usize>() -> Array<N, ()> {
8 //~^ ERROR constant provided when a type was expected
9 unimplemented!()
10 }
11
12 fn main() {}