2023-01-16 14:26:03 -06:00
|
|
|
error: overly complex generic constant
|
|
|
|
--> $DIR/issue-90318.rs:14:8
|
2021-12-08 16:25:52 -06:00
|
|
|
|
|
|
|
|
LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
|
2023-01-16 14:26:03 -06:00
|
|
|
| ^^-----------------^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| borrowing is not supported in generic constants
|
2021-12-08 16:25:52 -06:00
|
|
|
|
|
2023-01-16 14:26:03 -06:00
|
|
|
= help: consider moving this anonymous constant into a `const` function
|
|
|
|
= note: this operation may be supported in the future
|
2021-12-08 16:25:52 -06:00
|
|
|
|
2023-01-16 14:26:03 -06:00
|
|
|
error: overly complex generic constant
|
|
|
|
--> $DIR/issue-90318.rs:21:8
|
2021-12-08 16:25:52 -06:00
|
|
|
|
|
|
|
|
LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
|
2023-01-16 14:26:03 -06:00
|
|
|
| ^^-----------------^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| borrowing is not supported in generic constants
|
2021-12-08 16:25:52 -06:00
|
|
|
|
|
2023-01-16 14:26:03 -06:00
|
|
|
= help: consider moving this anonymous constant into a `const` function
|
|
|
|
= note: this operation may be supported in the future
|
2021-12-08 16:25:52 -06:00
|
|
|
|
2022-07-25 03:17:00 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2021-12-08 16:25:52 -06:00
|
|
|
|