[−][src]Macro code_location::code_location
Expands to the CodeLocation
on which it was invoked.
Examples
use code_location::code_location; println!("I am printing from {}", code_location!()); assert_eq!(code_location!().to_string(), "src/lib.rs:7:12");