]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/const-generics/issues/issue-62220.min.stderr
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / src / test / ui / const-generics / issues / issue-62220.min.stderr
index 943b689bf61afe572e85b61cc5a2160061981f83..3bd127ee74a592c401b72f3d9cd30f8e1d931e0c 100644 (file)
@@ -1,10 +1,10 @@
-error: generic parameters must not be used inside of non trivial constant values
+error: generic parameters may not be used in const operations
   --> $DIR/issue-62220.rs:8:59
    |
 LL | pub type TruncatedVector<T, const N: usize> = Vector<T, { N - 1 }>;
-   |                                                           ^ non-trivial anonymous constants must not depend on the parameter `N`
+   |                                                           ^ cannot perform const operation using `N`
    |
-   = help: it is currently only allowed to use either `N` or `{ N }` as generic constants
+   = help: const parameters may only be used as standalone arguments, i.e. `N`
 
 error: aborting due to previous error