/-- error:
tactic 'rewrite' failed, did not find instance of the pattern in the target expression
x
x y z : Nat
H : x = y
⊢ z = z
---
error: unsolved goals
x y z : Nat
⊢ x = y → z = z
-/
theorem rrw_intro_fail : ∀ (x y z : Nat), x = y → z = z := by
move=>x y z ->
I would expect the H to not be there in the error message (it isn't there after the tactic fails), but this is not very important.