]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/const-generics/const_evaluatable_checked/simple.min.stderr
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / ui / const-generics / const_evaluatable_checked / simple.min.stderr
index 46485262cc46eab2606aab57e8818647ce607ef9..d476a7eb6455cb95882da003faf9c2724d0f480a 100644 (file)
@@ -5,6 +5,7 @@ LL | fn test<const N: usize>() -> [u8; N - 1] where [u8; N - 1]: Default {
    |                                                     ^ 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: generic parameters may not be used in const operations
   --> $DIR/simple.rs:8:35
@@ -13,6 +14,7 @@ LL | fn test<const N: usize>() -> [u8; N - 1] where [u8; N - 1]: Default {
    |                                   ^ 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 2 previous errors