]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/const-generics/issues/issue-72819-generic-in-const-eval.min.stderr
Update tests to remove old numeric constants
[rust.git] / src / test / ui / const-generics / issues / issue-72819-generic-in-const-eval.min.stderr
index 9fec3eb946d8313c92ce512338444a72da4101de..8df3c85ec1f7749d83cccd11a225976b116896b0 100644 (file)
@@ -1,10 +1,11 @@
 error: generic parameters may not be used in const operations
   --> $DIR/issue-72819-generic-in-const-eval.rs:9:17
    |
-LL | where Assert::<{N < usize::max_value() / 2}>: IsTrue,
+LL | where Assert::<{N < usize::MAX / 2}>: IsTrue,
    |                 ^ 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