1error[E0308]: mismatched types 2 --> $DIR/type_mismatch.rs:2:11 3 | 4LL | bar::<N>() 5 | ^ expected `u8`, found `usize` 6 7error[E0308]: mismatched types 8 --> $DIR/type_mismatch.rs:5:26 9 | 10LL | fn bar<const N: u8>() -> [u8; N] {} 11 | --- ^^^^^^^ expected array `[u8; N]`, found `()` 12 | | 13 | implicitly returns `()` as its body has no tail or `return` expression 14 15error[E0308]: mismatched types 16 --> $DIR/type_mismatch.rs:5:31 17 | 18LL | fn bar<const N: u8>() -> [u8; N] {} 19 | ^ expected `usize`, found `u8` 20 21error: aborting due to 3 previous errors 22 23For more information about this error, try `rustc --explain E0308`. 24