Fancy extension for std::error::Error with pretty, detailed diagnostic printing.
1.85k
stars
106
forks
source link
`#[label]` derive doesn't seem to work with `Option<T>` where `T` implements `Into<SourceSpan>` but not `Copy` #377
Open
cdisselkoen opened 1 month ago
The
Diagnostic
derive fails in the following:The error message is "cannot move out of a shared reference" and says the problem is that
Option<MySpan>
does not implementCopy
.The derive works fine for
span: MySpan
, just not forspan: Option<MySpan>
.