mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-16 02:24:35 +00:00
25 lines
864 B
Plaintext
25 lines
864 B
Plaintext
error: overly complex generic constant
|
|
--> $DIR/issue-90318.rs:14:8
|
|
|
|
|
LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
|
|
| ^^-----------------^^^^^^^^^^^^^^^^^^^^^^^^
|
|
| |
|
|
| borrowing is not supported in generic constants
|
|
|
|
|
= help: consider moving this anonymous constant into a `const` function
|
|
= note: this operation may be supported in the future
|
|
|
|
error: overly complex generic constant
|
|
--> $DIR/issue-90318.rs:21:8
|
|
|
|
|
LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
|
|
| ^^-----------------^^^^^^^^^^^^^^^^^^^^^^^^
|
|
| |
|
|
| borrowing is not supported in generic constants
|
|
|
|
|
= help: consider moving this anonymous constant into a `const` function
|
|
= note: this operation may be supported in the future
|
|
|
|
error: aborting due to 2 previous errors
|
|
|