We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
[ref:type_id_partial_eq]
1 parent b58081a commit c4cfc44Copy full SHA for c4cfc44
doc/toolchain_limitations.md
@@ -486,10 +486,10 @@ use core::any::TypeId;
486
assert!(TypeId::of::<()>() == TypeId::of::<()>());
487
```
488
489
-```rust,compile_fail,E0015
+```rust,compile_fail,E0277
490
#![feature(const_type_id)]
491
use core::any::TypeId;
492
-// error[E0015]: cannot call non-const operator in constants
+// error[E0277]: can't compare `TypeId` with `_` in const contexts
493
const _: () = assert!(TypeId::of::<()>() == TypeId::of::<()>());
494
495
0 commit comments