2020-10-12 22:27:59 +01:00
|
|
|
error: generic parameters may not be used in const operations
|
2020-11-17 11:44:21 +01:00
|
|
|
--> $DIR/issue-72819-generic-in-const-eval.rs:8:17
|
2020-09-09 13:28:41 +02:00
|
|
|
|
|
2020-10-24 19:21:40 -04:00
|
|
|
LL | where Assert::<{N < usize::MAX / 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`
|
2021-08-27 18:04:57 +02:00
|
|
|
= help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
|
2020-09-09 13:28:41 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|