We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c605199 commit c93198fCopy full SHA for c93198f
src/libcore/any.rs
@@ -496,7 +496,6 @@ pub const fn type_name<T: ?Sized>() -> &'static str {
496
/// ```
497
#[unstable(feature = "type_name_of_val", issue = "66359")]
498
#[rustc_const_unstable(feature = "const_type_name", issue = "63084")]
499
-pub const fn type_name_of_val<T: ?Sized>(val: &T) -> &'static str {
500
- let _ = val;
+pub const fn type_name_of_val<T: ?Sized>(_val: &T) -> &'static str {
501
type_name::<T>()
502
}
0 commit comments