]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/const-generics/issue-61522-array-len-succ.min.stderr
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / ui / const-generics / issue-61522-array-len-succ.min.stderr
index 526807f0a247469e728ae6f6e32cae0697a99401..2eaef95c2321607a80a97921dd641b6cec3cdfcc 100644 (file)
@@ -5,6 +5,7 @@ LL | pub struct MyArray<const COUNT: usize>([u8; COUNT + 1]);
    |                                             ^^^^^ cannot perform const operation using `COUNT`
    |
    = help: const parameters may only be used as standalone arguments, i.e. `COUNT`
+   = 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/issue-61522-array-len-succ.rs:12:30
@@ -13,6 +14,7 @@ LL |     fn inner(&self) -> &[u8; COUNT + 1] {
    |                              ^^^^^ cannot perform const operation using `COUNT`
    |
    = help: const parameters may only be used as standalone arguments, i.e. `COUNT`
+   = help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
 
 error: aborting due to 2 previous errors