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