2020-10-12 16:27:59 -05:00
|
|
|
error: generic parameters may not be used in const operations
|
2020-09-09 06:28:41 -05:00
|
|
|
--> $DIR/issue-72819-generic-in-const-eval.rs:9:17
|
|
|
|
|
|
2020-10-24 18:21:40 -05:00
|
|
|
LL | where Assert::<{N < usize::MAX / 2}>: IsTrue,
|
2020-10-11 10:47:45 -05:00
|
|
|
| ^ cannot perform const operation using `N`
|
2020-09-09 06:28:41 -05:00
|
|
|
|
|
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
|
2020-09-09 06:28:41 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|