summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/issues/issue-90318.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/const-generics/issues/issue-90318.stderr')
-rw-r--r--src/test/ui/const-generics/issues/issue-90318.stderr29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/test/ui/const-generics/issues/issue-90318.stderr b/src/test/ui/const-generics/issues/issue-90318.stderr
new file mode 100644
index 000000000..aba4b5c1a
--- /dev/null
+++ b/src/test/ui/const-generics/issues/issue-90318.stderr
@@ -0,0 +1,29 @@
+error[E0277]: can't compare `TypeId` with `_` in const contexts
+ --> $DIR/issue-90318.rs:14:28
+ |
+LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
+ | ^^ no implementation for `TypeId == _`
+ |
+ = 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
+ |
+LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
+ | ^^
+
+error[E0277]: can't compare `TypeId` with `_` in const contexts
+ --> $DIR/issue-90318.rs:21:28
+ |
+LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
+ | ^^ no implementation for `TypeId == _`
+ |
+ = 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
+ |
+LL | If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
+ | ^^
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0277`.