2020-10-12 22:27:59 +01:00
|
|
|
error: generic parameters may not be used in const operations
|
2021-08-27 18:04:57 +02:00
|
|
|
--> $DIR/feature-gate-generic_const_exprs.rs:1:33
|
2020-09-11 11:42:32 +02:00
|
|
|
|
|
|
|
|
LL | type Arr<const N: usize> = [u8; N - 1];
|
2020-10-11 16:47:45 +01:00
|
|
|
| ^ cannot perform const operation using `N`
|
2020-09-11 11:42:32 +02:00
|
|
|
|
|
2020-10-12 22:27:59 +01:00
|
|
|
= help: const parameters may only be used as standalone arguments, i.e. `N`
|
2021-08-27 18:04:57 +02:00
|
|
|
= help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
|
2020-09-11 11:42:32 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|