rust/tests/ui/const-generics/generic_const_exprs/issue-72787.min.stderr

39 lines
1.6 KiB
Plaintext
Raw Normal View History

2020-10-12 16:27:59 -05:00
error: generic parameters may not be used in const operations
--> $DIR/issue-72787.rs:11:17
|
LL | Condition<{ LHS <= RHS }>: True
| ^^^ cannot perform const operation using `LHS`
|
2020-10-12 16:27:59 -05:00
= help: const parameters may only be used as standalone arguments, i.e. `LHS`
= help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
2020-10-12 16:27:59 -05:00
error: generic parameters may not be used in const operations
--> $DIR/issue-72787.rs:11:24
|
LL | Condition<{ LHS <= RHS }>: True
| ^^^ cannot perform const operation using `RHS`
|
2020-10-12 16:27:59 -05:00
= help: const parameters may only be used as standalone arguments, i.e. `RHS`
= help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
2020-10-12 16:27:59 -05:00
error: generic parameters may not be used in const operations
--> $DIR/issue-72787.rs:23:25
|
LL | IsLessOrEqual<{ 8 - I }, { 8 - J }>: True,
| ^ cannot perform const operation using `I`
|
2020-10-12 16:27:59 -05:00
= help: const parameters may only be used as standalone arguments, i.e. `I`
= help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
2020-10-12 16:27:59 -05:00
error: generic parameters may not be used in const operations
--> $DIR/issue-72787.rs:23:36
|
LL | IsLessOrEqual<{ 8 - I }, { 8 - J }>: True,
| ^ cannot perform const operation using `J`
|
2020-10-12 16:27:59 -05:00
= help: const parameters may only be used as standalone arguments, i.e. `J`
= help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
error: aborting due to 4 previous errors