summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/type_mismatch.rs
blob: 4a7534e3713818de3996da38970f8908ab6c2763 (plain)
1
2
3
4
5
6
7
8
9
fn foo<const N: usize>() -> [u8; N] {
    bar::<N>() //~ ERROR mismatched types
}

fn bar<const N: u8>() -> [u8; N] {}
//~^ ERROR mismatched types
//~| ERROR mismatched types

fn main() {}