@@ -9,11 +9,19 @@ LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
9
9
= help: consider moving this anonymous constant into a `const` function
10
10
= note: this operation may be supported in the future
11
11
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
13
13
--> $DIR/issue-90318.rs:14:10
14
14
|
15
15
LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
16
16
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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)
17
25
18
26
error: overly complex generic constant
19
27
--> $DIR/issue-90318.rs:22:8
@@ -26,11 +34,19 @@ LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
26
34
= help: consider moving this anonymous constant into a `const` function
27
35
= note: this operation may be supported in the future
28
36
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
30
38
--> $DIR/issue-90318.rs:22:10
31
39
|
32
40
LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
33
41
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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)
34
50
35
51
error: aborting due to 4 previous errors
36
52
0 commit comments