@@ -5,6 +5,7 @@ LL | Condition<{ LHS <= RHS }>: True
5
5
| ^^^ cannot perform const operation using `LHS`
6
6
|
7
7
= help: const parameters may only be used as standalone arguments, i.e. `LHS`
8
+ = note: use feature(const_generics) and feature(const_evaluatable_checked) to enable this
8
9
9
10
error: generic parameters may not be used in const operations
10
11
--> $DIR/issue-72787.rs:11:24
@@ -13,6 +14,7 @@ LL | Condition<{ LHS <= RHS }>: True
13
14
| ^^^ cannot perform const operation using `RHS`
14
15
|
15
16
= help: const parameters may only be used as standalone arguments, i.e. `RHS`
17
+ = note: use feature(const_generics) and feature(const_evaluatable_checked) to enable this
16
18
17
19
error: generic parameters may not be used in const operations
18
20
--> $DIR/issue-72787.rs:26:25
@@ -21,6 +23,7 @@ LL | IsLessOrEqual<{ 8 - I }, { 8 - J }>: True,
21
23
| ^ cannot perform const operation using `I`
22
24
|
23
25
= help: const parameters may only be used as standalone arguments, i.e. `I`
26
+ = note: use feature(const_generics) and feature(const_evaluatable_checked) to enable this
24
27
25
28
error: generic parameters may not be used in const operations
26
29
--> $DIR/issue-72787.rs:26:36
@@ -29,6 +32,7 @@ LL | IsLessOrEqual<{ 8 - I }, { 8 - J }>: True,
29
32
| ^ cannot perform const operation using `J`
30
33
|
31
34
= help: const parameters may only be used as standalone arguments, i.e. `J`
35
+ = note: use feature(const_generics) and feature(const_evaluatable_checked) to enable this
32
36
33
37
error[E0283]: type annotations needed
34
38
--> $DIR/issue-72787.rs:22:26
0 commit comments