]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/generic-param-mismatch.rs
Auto merge of #79342 - CDirkx:ipaddr-const, r=oli-obk
[rust.git] / src / test / ui / const-generics / generic-param-mismatch.rs
1 // revisions: full min
2 #![cfg_attr(full, allow(incomplete_features))]
3 #![cfg_attr(full, feature(const_generics))]
4 #![cfg_attr(min, feature(min_const_generics))]
5
6 fn test<const N: usize, const M: usize>() -> [u8; M] {
7     [0; N] //~ ERROR mismatched types
8 }
9
10 fn main() {}