diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-06-21 17:33:55 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-06-30 08:04:40 +0000 |
| commit | d37a04d09da8edb0d83ee5de30f2fa8db1758a85 (patch) | |
| tree | 76719e6946867fda5ab94be4222be78c9977cc72 /tests/ui | |
| parent | 672e0bec9edfb174c93edafcfe46a8fa3c05c931 (diff) | |
| download | rust-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.rs | 2 |
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> { |
