]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.stderr
Rollup merge of #106321 - compiler-errors:delayed-bug-backtrace, r=Nilstrieb
[rust.git] / tests / ui / const-generics / generic_const_exprs / feature-gate-generic_const_exprs.stderr
1 error: generic parameters may not be used in const operations
2   --> $DIR/feature-gate-generic_const_exprs.rs:1:33
3    |
4 LL | type Arr<const N: usize> = [u8; N - 1];
5    |                                 ^ cannot perform const operation using `N`
6    |
7    = help: const parameters may only be used as standalone arguments, i.e. `N`
8    = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
9
10 error: aborting due to previous error
11