1 error: generic parameters must not be used inside of non-trivial constant values
2 --> $DIR/simple.rs:8:53
4 LL | fn test<const N: usize>() -> [u8; N - 1] where [u8; N - 1]: Default {
5 | ^ non-trivial anonymous constants must not depend on the parameter `N`
7 = help: it is currently only allowed to use either `N` or `{ N }` as generic constants
9 error: generic parameters must not be used inside of non-trivial constant values
10 --> $DIR/simple.rs:8:35
12 LL | fn test<const N: usize>() -> [u8; N - 1] where [u8; N - 1]: Default {
13 | ^ non-trivial anonymous constants must not depend on the parameter `N`
15 = help: it is currently only allowed to use either `N` or `{ N }` as generic constants
17 error: aborting due to 2 previous errors