I would like to verify I'm not making a mistake.
Does the statement "fields do not have non-zero nilpotents" depend on the law of excluded middle?
All proofs of this fact I can conjure rely on the dichotomy $a=0\vee a\neq 0$ along with the implication (for fields) that $a\neq 0\implies a$ invertbile. Moreover, in algebraic geometry it's possible to show the generic ring of Zariski topoi is internally a field (has the implication $a\neq 0\implies a$ invertible, but not necessarily excluded middle).
Is there some super simple example of a (commutative unitary) ring which is internally a field and has nilpotents?
Added. What about the statement "in a field, the only nilpotent is zero"?
Remark. The implication ($\neg (a=0)\implies a$ is invertible) is not of my invention; it is taken as the definition of a "ring of fractions" in section 2 of this paper by Kock. Fields are defined analogously.
If $F$ is a field, I would interpret "No non-zero element is nilpotent" to mean simply that $(\forall x\in F)(x\ne 0 \implies (\forall n\in\mathbb{N})(x^n \ne 0)).$ The usual proof of this from the field axioms assumes $x\ne 0$ and proves that no power of $x$ is $0,$ which is constructive.
(The sentence $(\forall x\in F)(x=0 \,\lor\, (\forall n\in\mathbb{N})(x^n \ne 0))$ might be problematic, but that's a different sentence.)
As for the statement "In a field, the only nilpotent is zero," I think this depends how it's interpreted constructively.
(1) $\;(\forall x)\Big( \big((\exists n)(x^n=0)\big) \implies x=0 \Big)$ means that for every $x,$ if we have a witness $n$ that $x^n=0,$ then we can prove constructively that $x=0.$
(2) $\;\lnot (\exists x) \Big(\big((\exists n)(x^n=0)\big) \,\wedge\, x\ne0 \Big)$ means that we can derive a contradiction from the existence of a non-zero nilpotent.
(3) $\;(\forall x)\Big(x\ne 0 \implies \big((\forall n)(x^n \ne 0)\big) \Big)$ means that if we have a constructive proof that $x\ne 0,$ then, for every $n,$ we can produce constructively a constructive proof that $x^n\ne 0.$
(4) $\;(\forall x)\Big(x\ne 0 \implies \big(\lnot(\exists n)(x^n =0)\big) \Big)$ means the same thing as (2).
This is assuming I've unravelled everything correctly; it's tricky. If one thinks through the proofs very carefully, one should be able to see which of these are always true constructively.