rust/src/test/ui/const-generics/issues/issue-72819-generic-in-const-eval.min.stderr

12 lines
492 B
Plaintext
Raw Normal View History

2020-10-12 16:27:59 -05:00
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,
| ^ cannot perform const operation using `N`
|
2020-10-12 16:27:59 -05:00
= help: const parameters may only be used as standalone arguments, i.e. `N`
2020-11-24 05:05:55 -06:00
= help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
error: aborting due to previous error