fn err_if_attr_found(
    ctxt: &EntryContext<'_>,
    id: ItemId,
    sym: Symbol,
    details: &str
)