rustc 1.93.0-nightly (c871d09d1 2025-11-24)
#[derive(Debug, Error, Diagnostic)]
#[error("An error occurred in X")]
struct X {
#[label("Here is the problem")]
range: SourceSpan,
}
warning: value assigned to `range` is never read
--> src\main.rs:8:5
|
8 | range: SourceSpan,
| ^^^^^
|
= help: maybe it is overwritten before being read?
= note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default