2020-10-12 21:27:59 +00:00
|
|
|
error: generic parameters may not be used in const operations
|
2020-11-17 10:44:21 +00:00
|
|
|
--> $DIR/issue-72819-generic-in-const-eval.rs:8:17
|
2020-09-09 11:28:41 +00:00
|
|
|
|
|
2020-10-24 23:21:40 +00:00
|
|
|
LL | where Assert::<{N < usize::MAX / 2}>: IsTrue,
|
2020-10-11 15:47:45 +00:00
|
|
|
| ^ cannot perform const operation using `N`
|
2020-09-09 11:28:41 +00:00
|
|
|
|
|
2020-10-12 21:27:59 +00:00
|
|
|
= help: const parameters may only be used as standalone arguments, i.e. `N`
|
2021-08-27 16:04:57 +00:00
|
|
|
= help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
|
2020-09-09 11:28:41 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|