]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-arg-type-arg-misordered.rs
Move generic arg / param validation to `create_substs_for_generic_args`
[rust.git] / src / test / ui / const-generics / const-arg-type-arg-misordered.rs
1 #![feature(const_generics)]
2 //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
3
4 type Array<T, const N: usize> = [T; N];
5
6 fn foo<const N: usize>() -> Array<N, ()> { //~ ERROR constant provided when a type was expected
7     unimplemented!()
8 }
9
10 fn main() {}