]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
29967ef6 1error: generic parameters may not be used in const operations
5869c6ff 2 --> $DIR/issue-62220.rs:7:59
1b1a35ee
XL
3 |
4LL | pub type TruncatedVector<T, const N: usize> = Vector<T, { N - 1 }>;
29967ef6 5 | ^ cannot perform const operation using `N`
1b1a35ee 6 |
29967ef6 7 = help: const parameters may only be used as standalone arguments, i.e. `N`
fc512014 8 = help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
1b1a35ee
XL
9
10error: aborting due to previous error
11