1 error[E0308]: mismatched types
2 --> $DIR/generic-param-mismatch.rs:2:5
4 LL | fn test<const N: usize, const M: usize>() -> [u8; M] {
5 | ------- expected `[u8; M]` because of return type
7 | ^^^^^^ expected `M`, found `N`
9 = note: expected array `[u8; M]`
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0308`.