@jonathan-oconnor points out that you can use the [[deprecated]] attribute introduced in C++14 to produce a very clean solution:
template
[[deprecated]] constexpr void printType(T const&) {}
Unfortunately though, the diagnostic emitted by MSVC doesn't mention the type. (example)