summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/generic-param-mismatch.rs
blob: 2e201e50a64e9e45376d25b0f449c0814326c32c (plain)
1
2
3
4
5
fn test<const N: usize, const M: usize>() -> [u8; M] {
    [0; N] //~ ERROR mismatched types
}

fn main() {}