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

66 lines
2.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
2020-11-17 04:44:21 -06:00
--> $DIR/issue-72787.rs:10: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: use `#![feature(const_generics)]` and `#![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
2020-11-17 04:44:21 -06:00
--> $DIR/issue-72787.rs:10: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: use `#![feature(const_generics)]` and `#![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
2020-11-17 04:44:21 -06:00
--> $DIR/issue-72787.rs:25: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: use `#![feature(const_generics)]` and `#![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
2020-11-17 04:44:21 -06:00
--> $DIR/issue-72787.rs:25: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: use `#![feature(const_generics)]` and `#![feature(generic_const_exprs)]` to allow generic const expressions
error[E0283]: type annotations needed
2020-11-17 04:44:21 -06:00
--> $DIR/issue-72787.rs:21:26
|
LL | IsLessOrEqual<I, 8>: True,
| ^^^^ cannot infer type for struct `IsLessOrEqual<I, 8_u32>`
|
= note: cannot satisfy `IsLessOrEqual<I, 8_u32>: True`
note: required by a bound in `True`
--> $DIR/issue-72787.rs:7:1
|
LL | pub trait True {}
| ^^^^^^^^^^^^^^ required by this bound in `True`
error[E0283]: type annotations needed
2020-11-17 04:44:21 -06:00
--> $DIR/issue-72787.rs:21:26
|
LL | IsLessOrEqual<I, 8>: True,
| ^^^^ cannot infer type for struct `IsLessOrEqual<I, 8_u32>`
|
= note: cannot satisfy `IsLessOrEqual<I, 8_u32>: True`
note: required by a bound in `True`
--> $DIR/issue-72787.rs:7:1
|
LL | pub trait True {}
| ^^^^^^^^^^^^^^ required by this bound in `True`
error: aborting due to 6 previous errors
For more information about this error, try `rustc --explain E0283`.