1 2 3 4 5 6 7 8 9 10 11 12 13
// Checks that `#[stack_source]` on a field whose type does not implement // `ErrorStack` produces a compile error. use errorstack::ErrorStack; #[derive(ErrorStack)] enum AppError { Invalid { #[stack_source] not_a_source: String, }, } fn main() {}