use crate::ast::Container;
use crate::ctxt::Ctxt;
pub fn check(cx: &Ctxt, cont: &mut Container) { check_from_and_try_from(cx, cont); }
fn check_from_and_try_from(cx: &Ctxt, cont: &mut Container) {
if cont.attrs.type_from().is_some() && cont.attrs.type_try_from().is_some() {
cx.error_spanned_by(
cont.original,
"#[clickhouse_arrow(from = \"...\")] and #[clickhouse_arrow(try_from = \"...\")] \
conflict with each other",
);
}
}