Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips & Traps

"i32"
std::any::type_name::<0>()
                      ^ 
constant provided when a type was expected


consider importing one of these items
#![feature(type_name_of_val)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
an inner attribute is not permitted in this context

use of unstable library feature 'type_name_of_val'
println!("{}", type_name_of_val(&x));
               ^^^^^^^^^^^^^^^^ 
use of unstable library feature 'type_name_of_val'
println!("{}", type_name_of_val(&y));
               ^^^^^^^^^^^^^^^^ 
use of unstable library feature 'type_name_of_val'

Use the typename crate

"std::string::String"
"std::vec::Vec<i32>"
"[i32; 3]"