]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/type_mismatch.rs
Rollup merge of #106859 - tialaramex:master, r=Nilstrieb
[rust.git] / tests / 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() {}