2020-10-12 22:27:59 +01:00
|
|
|
error: generic parameters may not be used in const operations
|
2020-09-09 13:28:41 +02:00
|
|
|
--> $DIR/issue-72787.rs:11:17
|
|
|
|
|
|
|
|
|
LL | Condition<{ LHS <= RHS }>: True
|
2020-10-11 16:47:45 +01:00
|
|
|
| ^^^ cannot perform const operation using `LHS`
|
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. `LHS`
|
2020-11-24 11:05:55 +00:00
|
|
|
= help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
|
2020-09-09 13:28:41 +02:00
|
|
|
|
2020-10-12 22:27:59 +01:00
|
|
|
error: generic parameters may not be used in const operations
|
2020-09-09 13:28:41 +02:00
|
|
|
--> $DIR/issue-72787.rs:11:24
|
|
|
|
|
|
|
|
|
LL | Condition<{ LHS <= RHS }>: True
|
2020-10-11 16:47:45 +01:00
|
|
|
| ^^^ cannot perform const operation using `RHS`
|
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. `RHS`
|
2020-11-24 11:05:55 +00:00
|
|
|
= help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
|
2020-09-09 13:28:41 +02:00
|
|
|
|
2020-10-12 22:27:59 +01:00
|
|
|
error: generic parameters may not be used in const operations
|
2020-09-10 09:04:14 +02:00
|
|
|
--> $DIR/issue-72787.rs:26:25
|
2020-09-09 13:28:41 +02:00
|
|
|
|
|
|
|
|
LL | IsLessOrEqual<{ 8 - I }, { 8 - J }>: True,
|
2020-10-11 16:47:45 +01:00
|
|
|
| ^ cannot perform const operation using `I`
|
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. `I`
|
2020-11-24 11:05:55 +00:00
|
|
|
= help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
|
2020-09-09 13:28:41 +02:00
|
|
|
|
2020-10-12 22:27:59 +01:00
|
|
|
error: generic parameters may not be used in const operations
|
2020-09-10 09:04:14 +02:00
|
|
|
--> $DIR/issue-72787.rs:26:36
|
2020-09-09 13:28:41 +02:00
|
|
|
|
|
|
|
|
LL | IsLessOrEqual<{ 8 - I }, { 8 - J }>: True,
|
2020-10-11 16:47:45 +01:00
|
|
|
| ^ cannot perform const operation using `J`
|
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. `J`
|
2020-11-24 11:05:55 +00:00
|
|
|
= help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
|
2020-09-09 13:28:41 +02:00
|
|
|
|
|
|
|
error[E0283]: type annotations needed
|
|
|
|
--> $DIR/issue-72787.rs:22:26
|
|
|
|
|
|
|
|
|
LL | pub trait True {}
|
|
|
|
| -------------- required by this bound in `True`
|
|
|
|
...
|
|
|
|
LL | IsLessOrEqual<I, 8>: True,
|
|
|
|
| ^^^^ cannot infer type for struct `IsLessOrEqual<I, 8_u32>`
|
|
|
|
|
|
|
|
|
= note: cannot satisfy `IsLessOrEqual<I, 8_u32>: True`
|
|
|
|
|
|
|
|
error[E0283]: type annotations needed
|
|
|
|
--> $DIR/issue-72787.rs:22:26
|
|
|
|
|
|
|
|
|
LL | pub trait True {}
|
|
|
|
| -------------- required by this bound in `True`
|
|
|
|
...
|
|
|
|
LL | IsLessOrEqual<I, 8>: True,
|
|
|
|
| ^^^^ cannot infer type for struct `IsLessOrEqual<I, 8_u32>`
|
|
|
|
|
|
|
|
|
= note: cannot satisfy `IsLessOrEqual<I, 8_u32>: True`
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0283`.
|