]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/const-generics/issues/issue-62220.min.stderr
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / ui / const-generics / issues / issue-62220.min.stderr
index 3bd127ee74a592c401b72f3d9cd30f8e1d931e0c..b338cdb87e1e5ee03e868329e36c3e5adc68dd11 100644 (file)
@@ -5,6 +5,7 @@ LL | pub type TruncatedVector<T, const N: usize> = Vector<T, { N - 1 }>;
    |                                                           ^ cannot perform const operation using `N`
    |
    = help: const parameters may only be used as standalone arguments, i.e. `N`
+   = help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
 
 error: aborting due to previous error