1 error: overly complex generic constant
2 --> $DIR/issue-90318.rs:14:8
4 LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
5 | ^^-----------------^^^^^^^^^^^^^^^^^^^^^^^^
7 | borrowing is not supported in generic constants
9 = help: consider moving this anonymous constant into a `const` function
10 = note: this operation may be supported in the future
12 error[E0015]: cannot call non-const operator in constants
13 --> $DIR/issue-90318.rs:14:10
15 LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 note: impl defined here, but it is not `const`
19 --> $SRC_DIR/core/src/any.rs:LL:COL
21 LL | #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, Hash)]
23 = note: calls in constants are limited to constant functions, tuple structs and tuple variants
24 = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
26 error: overly complex generic constant
27 --> $DIR/issue-90318.rs:22:8
29 LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
30 | ^^-----------------^^^^^^^^^^^^^^^^^^^^^^^^
32 | borrowing is not supported in generic constants
34 = help: consider moving this anonymous constant into a `const` function
35 = note: this operation may be supported in the future
37 error[E0015]: cannot call non-const operator in constants
38 --> $DIR/issue-90318.rs:22:10
40 LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43 note: impl defined here, but it is not `const`
44 --> $SRC_DIR/core/src/any.rs:LL:COL
46 LL | #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, Hash)]
48 = note: calls in constants are limited to constant functions, tuple structs and tuple variants
49 = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
51 error: aborting due to 4 previous errors
53 For more information about this error, try `rustc --explain E0015`.