Files
rust/tests/ui/explain/explanation-code-rendering-edge-case-regression.rs
T
Esteban Küber 530c69bbc2 Do not index past end of buffer when checking heuristic in error index syntax highlighter
When checking whether the current token is a function indentifier by inspecting the syntax, do not attempt to access past the end of the code buffer.
2026-05-13 17:52:04 +00:00

4 lines
154 B
Rust

//@ compile-flags: --explain E0602 --color always --error-format=human
//@ check-pass
// Ensure that we trigger the condition for #156326 without ICEing.