rust/tests/ui-fulldeps/explain_highlighter.run.stdout
JayanAXHF 67c45b739a feat: added syntax highlighting for code blocks in rustc --explain
This commit adds a heuristics-based syntax highlighter for the `rustc
--explain` command. It uses `rsutc_lexer`'s lexer to parse input in
tokens, and matches on them to determine their color.
2026-01-19 17:44:24 +05:30

637 B

 
struct Foo;
 
fn baz(x: i32) {
// A function
}
 
fn main() {
let foo = Foo;
foo.bar();
}