1 2 3 4 5 6 7 8 9 10 11 12 13
use errorstack::ErrorStack; #[derive(ErrorStack)] enum AppError { Conflict { #[location] loc1: &'static std::panic::Location<'static>, #[location] loc2: &'static std::panic::Location<'static>, }, } fn main() {}