summary refs log tree commit diff
path: root/src/test/ui/const-generics/generic-param-mismatch.rs
blob: 22fffe47dcc2f5c91941de8bc901b874a21cafa2 (plain)
1
2
3
4
5
6
7
8
9
// revisions: full min
#![cfg_attr(full, allow(incomplete_features))]
#![cfg_attr(full, feature(const_generics))]

fn test<const N: usize, const M: usize>() -> [u8; M] {
    [0; N] //~ ERROR mismatched types
}

fn main() {}