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