1- error[E0277]: can't compare `TypeId` with `TypeId` in const contexts
2- --> $DIR/const_cmp_type_id.rs:8:13
3- |
4- LL | assert!(TypeId::of::<u8>() == TypeId::of::<u8>());
5- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `TypeId == TypeId`
6- |
7- = help: the trait `~const PartialEq` is not implemented for `TypeId`
8- note: the trait `PartialEq` is implemented for `TypeId`, but that implementation is not `const`
9- --> $DIR/const_cmp_type_id.rs:8:13
10- |
11- LL | assert!(TypeId::of::<u8>() == TypeId::of::<u8>());
12- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13-
141error[E0015]: cannot call non-const operator in constant functions
152 --> $DIR/const_cmp_type_id.rs:8:13
163 |
@@ -21,19 +8,6 @@ note: impl defined here, but it is not `const`
218 --> $SRC_DIR/core/src/any.rs:LL:COL
229 = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
2310
24- error[E0277]: can't compare `TypeId` with `TypeId` in const contexts
25- --> $DIR/const_cmp_type_id.rs:9:13
26- |
27- LL | assert!(TypeId::of::<()>() != TypeId::of::<u8>());
28- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `TypeId == TypeId`
29- |
30- = help: the trait `~const PartialEq` is not implemented for `TypeId`
31- note: the trait `PartialEq` is implemented for `TypeId`, but that implementation is not `const`
32- --> $DIR/const_cmp_type_id.rs:9:13
33- |
34- LL | assert!(TypeId::of::<()>() != TypeId::of::<u8>());
35- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36-
3711error[E0015]: cannot call non-const operator in constant functions
3812 --> $DIR/const_cmp_type_id.rs:9:13
3913 |
@@ -44,19 +18,6 @@ note: impl defined here, but it is not `const`
4418 --> $SRC_DIR/core/src/any.rs:LL:COL
4519 = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
4620
47- error[E0277]: can't compare `TypeId` with `TypeId` in const contexts
48- --> $DIR/const_cmp_type_id.rs:10:22
49- |
50- LL | const _A: bool = TypeId::of::<u8>() < TypeId::of::<u16>();
51- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `TypeId < TypeId` and `TypeId > TypeId`
52- |
53- = help: the trait `~const PartialOrd` is not implemented for `TypeId`
54- note: the trait `PartialOrd` is implemented for `TypeId`, but that implementation is not `const`
55- --> $DIR/const_cmp_type_id.rs:10:22
56- |
57- LL | const _A: bool = TypeId::of::<u8>() < TypeId::of::<u16>();
58- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
59-
6021error[E0015]: cannot call non-const operator in constants
6122 --> $DIR/const_cmp_type_id.rs:10:22
6223 |
@@ -68,7 +29,6 @@ note: impl defined here, but it is not `const`
6829 = note: calls in constants are limited to constant functions, tuple structs and tuple variants
6930 = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
7031
71- error: aborting due to 6 previous errors
32+ error: aborting due to 3 previous errors
7233
73- Some errors have detailed explanations: E0015, E0277.
74- For more information about an error, try `rustc --explain E0015`.
34+ For more information about this error, try `rustc --explain E0015`.
0 commit comments