function_name

Attribute Macro named

Source
#[named]
Expand description

Entry point of the crate.

use ::function_name::named;

#[test]
#[named]
fn foo ()
{
   assert_eq!(function_name!(), "foo");
}