]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-arg-type-arg-misordered.rs
Auto merge of #79342 - CDirkx:ipaddr-const, r=oli-obk
[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 #![cfg_attr(min, feature(min_const_generics))]
5
6 type Array<T, const N: usize> = [T; N];
7
8 fn foo<const N: usize>() -> Array<N, ()> {
9     //~^ ERROR constant provided when a type was expected
10     unimplemented!()
11 }
12
13 fn main() {}