use ::function_name::named; fn main() { let func_name = function_name!(); println!("{}",func_name); }