Skip to content

Commit c4cfc44

Browse files
committed
test(toolchain_limitations): update the error code of [ref:type_id_partial_eq]
1 parent b58081a commit c4cfc44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/toolchain_limitations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,10 +486,10 @@ use core::any::TypeId;
486486
assert!(TypeId::of::<()>() == TypeId::of::<()>());
487487
```
488488

489-
```rust,compile_fail,E0015
489+
```rust,compile_fail,E0277
490490
#![feature(const_type_id)]
491491
use core::any::TypeId;
492-
// error[E0015]: cannot call non-const operator in constants
492+
// error[E0277]: can't compare `TypeId` with `_` in const contexts
493493
const _: () = assert!(TypeId::of::<()>() == TypeId::of::<()>());
494494
```
495495

0 commit comments

Comments
 (0)