Ruby's first 3.1 preview locates the failing expression
engineeringrubydiagnosticsexceptionsRuby 3.1.0-preview1 includes error_highlight by default. Its expression-level diagnostics depend on syntax tree information, with specific consequences for exception messages and supported source code.