fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/generic-param-mismatch.rs:2:5 3 | 4LL | fn test<const N: usize, const M: usize>() -> [u8; M] { 5 | ------- expected `[u8; M]` because of return type 6LL | [0; N] 7 | ^^^^^^ expected `M`, found `N` 8 | 9 = note: expected array `[u8; M]` 10 found array `[u8; N]` 11 12error: aborting due to previous error 13 14For more information about this error, try `rustc --explain E0308`.