@@ -9,11 +9,19 @@ LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
99 = help: consider moving this anonymous constant into a `const` function
1010 = note: this operation may be supported in the future
1111
12- error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants
12+ error[E0015]: cannot call non-const operator in constants
1313 --> $DIR/issue-90318.rs:14:10
1414 |
1515LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
1616 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17+ |
18+ note: impl defined here, but it is not `const`
19+ --> $SRC_DIR/core/src/any.rs:LL:COL
20+ |
21+ LL | #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, Hash)]
22+ | ^^^^^^^^^
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)
1725
1826error: overly complex generic constant
1927 --> $DIR/issue-90318.rs:22:8
@@ -26,11 +34,19 @@ LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
2634 = help: consider moving this anonymous constant into a `const` function
2735 = note: this operation may be supported in the future
2836
29- error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants
37+ error[E0015]: cannot call non-const operator in constants
3038 --> $DIR/issue-90318.rs:22:10
3139 |
3240LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
3341 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42+ |
43+ note: impl defined here, but it is not `const`
44+ --> $SRC_DIR/core/src/any.rs:LL:COL
45+ |
46+ LL | #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug, Hash)]
47+ | ^^^^^^^^^
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)
3450
3551error: aborting due to 4 previous errors
3652
0 commit comments