1 // Without --remap-path-prefix, Location::caller() in this generic function will return an absolute path get_file_name<T>() -> &'static str2 pub fn get_file_name<T>() -> &'static str { 3 std::panic::Location::caller().file() 4 } 5