summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/issue-73976-monomorphic.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/consts/issue-73976-monomorphic.rs (renamed from src/test/ui/consts/issue-73976-monomorphic.rs)3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/ui/consts/issue-73976-monomorphic.rs b/tests/ui/consts/issue-73976-monomorphic.rs
index 7706a97f2..addcc1eaa 100644
--- a/src/test/ui/consts/issue-73976-monomorphic.rs
+++ b/tests/ui/consts/issue-73976-monomorphic.rs
@@ -7,6 +7,7 @@
#![feature(const_type_id)]
#![feature(const_type_name)]
+#![feature(const_trait_impl)]
use std::any::{self, TypeId};
@@ -17,7 +18,7 @@ impl<T: 'static> GetTypeId<T> {
}
const fn check_type_id<T: 'static>() -> bool {
- matches!(GetTypeId::<T>::VALUE, GetTypeId::<usize>::VALUE)
+ GetTypeId::<T>::VALUE == GetTypeId::<usize>::VALUE
}
pub struct GetTypeNameLen<T>(T);