lean4-htt/tests/lean/297.lean.expected.out
jrr6 4759506bcf
chore: use note and hint' for message addenda (#8980)
This PR improves the consistency of error message formatting by
rendering addenda of several existing error messages as labeled notes
and hints.
2025-06-27 15:16:01 +00:00

7 lines
335 B
Text

297.lean:1:10-1:11: error: failed to synthesize
OfNat (Sort ?u) 0
numerals are polymorphic in Lean, but the numeral `0` cannot be used in a context where the expected type is
Sort ?u
due to the absence of the instance above
Hint: Additional diagnostic information may be available using the `set_option diagnostics true` command.