2020-10-12 22:27:59 +01:00
|
|
|
error: generic parameters may not be used in const operations
|
2020-09-09 13:28:41 +02:00
|
|
|
--> $DIR/issue-72819-generic-in-const-eval.rs:9:17
|
|
|
|
|
|
|
|
|
LL | where Assert::<{N < usize::max_value() / 2}>: IsTrue,
|
2020-10-11 16:47:45 +01:00
|
|
|
| ^ cannot perform const operation using `N`
|
2020-09-09 13:28:41 +02:00
|
|
|
|
|
2020-10-12 22:27:59 +01:00
|
|
|
= help: const parameters may only be used as standalone arguments, i.e. `N`
|
2020-11-24 11:05:55 +00:00
|
|
|
= help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
|
2020-09-09 13:28:41 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|