]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/issues/issue-62220.min.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / const-generics / issues / issue-62220.min.stderr
1 error: generic parameters may not be used in const operations
2 --> $DIR/issue-62220.rs:7:59
3 |
4 LL | pub type TruncatedVector<T, const N: usize> = Vector<T, { 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(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
9
10 error: aborting due to previous error
11