From 698f8c2f01ea549d77d7dc3338a12e04c11057b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:02:58 +0200 Subject: Adding upstream version 1.64.0+dfsg1. Signed-off-by: Daniel Baumann --- .../ui/const-generics/issues/issue-90318.stderr | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/test/ui/const-generics/issues/issue-90318.stderr (limited to 'src/test/ui/const-generics/issues/issue-90318.stderr') 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::() != 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::() != TypeId::of::<()>() }>: True, + | ^^ + +error[E0277]: can't compare `TypeId` with `_` in const contexts + --> $DIR/issue-90318.rs:21:28 + | +LL | If<{ TypeId::of::() != 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::() != TypeId::of::<()>() }>: True, + | ^^ + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0277`. -- cgit v1.2.3