Any idempotent element (other than 0 or 1) must be a zero-divisor, so in particular there are no nontrivial idempotents in domains.
Are there examples of rings with zero divisors without nontrivial idempotents? (If so, is there anything interesting to say about such rings, e.g., characterizations?)
$\newcommand{\Z}{\mathbb{Z}}$Quotient rings $\Z/p^{n}\Z$, with $p$ a prime, have zero divisors for $n \ge 2$, but no idempotents $\ne 0, 1$. As noted in another answer, more generally local rings have no non-trivial idempotents.