]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/type_mismatch.rs
Auto merge of #87150 - rusticstuff:simplify_wrapping_neg, r=m-ou-se
[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() {}