]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/type_mismatch.rs
Move generic error message to separate branches
[rust.git] / src / test / ui / const-generics / type_mismatch.rs
1 fn foo<const N: usize>() -> [u8; N] {
2     bar::<N>() //~ ERROR mismatched types
3 }
4
5 fn bar<const N: u8>() -> [u8; N] {}
6 //~^ ERROR mismatched types
7 //~| ERROR mismatched types
8
9 fn main() {}