use locate_error::Locate;
use locate_error::Location;
#[derive(Locate)]
pub struct ExtraFields {
#[locate_from]
pub inner: Inner,
pub location: Location,
pub extra_field: String,
}
#[derive(Locate)]
pub struct MissingLocation {
#[locate_from]
pub inner: Inner,
pub extra_field: String,
}
#[derive(Locate)]
pub struct MissingSource {
pub location: Location,
pub extra_field: String,
}
#[derive(Locate)]
pub struct MultipleSourceFields {
#[locate_from]
pub inner: Inner,
pub location: Location,
#[locate_from]
pub extra_field: String,
}
pub struct Inner {
pub field: String,
}
fn main() {}