]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-arg-type-arg-misordered.rs
Rollup merge of #79399 - pickfire:patch-3, r=JohnTitor
[rust.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() {}