rust/tests/ui/const-generics/issues/issue-90318.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-07-25 03:17:00 -05:00
error[E0277]: can't compare `TypeId` with `_` in const contexts
--> $DIR/issue-90318.rs:14:28
2021-12-08 16:25:52 -06:00
|
LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
2022-07-25 03:17:00 -05:00
| ^^ no implementation for `TypeId == _`
2021-12-08 16:25:52 -06:00
|
2022-07-25 03:17:00 -05:00
= help: the trait `~const PartialEq<_>` is not implemented for `TypeId`
note: the trait `PartialEq<_>` is implemented for `TypeId`, but that implementation is not `const`
--> $DIR/issue-90318.rs:14:28
2021-12-08 16:25:52 -06:00
|
LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
2022-07-25 03:17:00 -05:00
| ^^
2021-12-08 16:25:52 -06:00
2022-07-25 03:17:00 -05:00
error[E0277]: can't compare `TypeId` with `_` in const contexts
--> $DIR/issue-90318.rs:21:28
2021-12-08 16:25:52 -06:00
|
LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
2022-07-25 03:17:00 -05:00
| ^^ no implementation for `TypeId == _`
2021-12-08 16:25:52 -06:00
|
2022-07-25 03:17:00 -05:00
= help: the trait `~const PartialEq<_>` is not implemented for `TypeId`
note: the trait `PartialEq<_>` is implemented for `TypeId`, but that implementation is not `const`
--> $DIR/issue-90318.rs:21:28
2021-12-08 16:25:52 -06:00
|
LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
2022-07-25 03:17:00 -05:00
| ^^
2021-12-08 16:25:52 -06:00
2022-07-25 03:17:00 -05:00
error: aborting due to 2 previous errors
2021-12-08 16:25:52 -06:00
2022-07-25 03:17:00 -05:00
For more information about this error, try `rustc --explain E0277`.