about summary refs log tree commit diff
path: root/tests/ui
diff options
context:
space:
mode:
authorOli Scherer <github333195615777966@oli-obk.de>2025-06-21 17:33:55 +0000
committerOli Scherer <github333195615777966@oli-obk.de>2025-06-30 08:04:40 +0000
commitd37a04d09da8edb0d83ee5de30f2fa8db1758a85 (patch)
tree76719e6946867fda5ab94be4222be78c9977cc72 /tests/ui
parent672e0bec9edfb174c93edafcfe46a8fa3c05c931 (diff)
downloadrust-d37a04d09da8edb0d83ee5de30f2fa8db1758a85.tar.gz
rust-d37a04d09da8edb0d83ee5de30f2fa8db1758a85.zip
Remove the nullary intrinsic const eval logic and treat them like other intrinsics
Diffstat (limited to 'tests/ui')
-rw-r--r--tests/ui/consts/const-fn-type-name.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/consts/const-fn-type-name.rs b/tests/ui/consts/const-fn-type-name.rs
index 5403c26b979..733ab79b7cd 100644
--- a/tests/ui/consts/const-fn-type-name.rs
+++ b/tests/ui/consts/const-fn-type-name.rs
@@ -5,7 +5,7 @@
 #![allow(dead_code)]
 
 const fn type_name_wrapper<T>(_: &T) -> &'static str {
-    core::intrinsics::type_name::<T>()
+    const { core::intrinsics::type_name::<T>() }
 }
 
 struct Struct<TA, TB, TC> {