Macro errloc_macros::errloc
[−]
[src]
macro_rules! errloc { () => { ... }; }
Macro that returns current source file name with a line number.
This macro returns "filename:linenumber" &str
.
It can be used to include error location information
into panic payload like this: foo().except(errloc!())