rust/src/test/ui/const-generics/issues/issue-72787.min.stderr

62 lines
2.5 KiB
Plaintext
Raw Normal View History

2020-10-12 22:27:59 +01: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 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-10-12 22:27:59 +01: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 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-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
|
LL | IsLessOrEqual<{ 8 - I }, { 8 - J }>: True,
| ^ cannot perform const operation using `I`
|
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-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
|
LL | IsLessOrEqual<{ 8 - I }, { 8 - J }>: True,
| ^ cannot perform const operation using `J`
|
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
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`.