diff --git a/sqlx-core/src/any/type.rs b/sqlx-core/src/any/type.rs index 1fc4dc53a3..c678c9c7a4 100644 --- a/sqlx-core/src/any/type.rs +++ b/sqlx-core/src/any/type.rs @@ -8,8 +8,10 @@ macro_rules! impl_any_type { ($ty:ty) => { impl crate::types::Type for $ty { fn type_info() -> crate::any::AnyTypeInfo { - // FIXME: nicer panic explaining why this isn't possible - unimplemented!() + panic!( + "Type::type_info() is not implemented for {}. type_info should not be called on base types.", + std::any::type_name::<$ty>(), + ); } fn compatible(ty: &crate::any::AnyTypeInfo) -> bool {