macro_rules! define_error {
($name:ident $(< $($gen:ident : $bound:path),* >)? {
$build_fn:item
$location_fn:item
}) => { ... };
}Expand description
Provides the boilerplate for implementing super::Diag on a struct with super::Severity::Error.