1 error: generic parameters may not be used in const operations
2 --> $DIR/simple.rs:7:53
4 LL | fn test<const N: usize>() -> [u8; N - 1] where [u8; N - 1]: Default {
5 | ^ cannot perform const operation using `N`
7 = help: const parameters may only be used as standalone arguments, i.e. `N`
8 = help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
10 error: generic parameters may not be used in const operations
11 --> $DIR/simple.rs:7:35
13 LL | fn test<const N: usize>() -> [u8; N - 1] where [u8; N - 1]: Default {
14 | ^ cannot perform const operation using `N`
16 = help: const parameters may only be used as standalone arguments, i.e. `N`
17 = help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
19 error: aborting due to 2 previous errors