You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use std::intrinsics::TypeId;fnprint_type_name<T:'static>(_val:T){println!("{}",TypeId::of::<T>());}fnmain(){print_type_name(|_name:&str| {// allows non 'static &str here5i
});}// error: internal compiler error: non-static region found when hashing a type