E.g.,
error: the type of this value must be known in this context
--> src/librustc_save_analysis/sig.rs:281:39
|
281 | let generics: Signature = generics.make(offset + text.len(), id, scx)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
the expression with unknown type is the variable use generics, but the error highlight covers the entire sub-expression of expr?. I assume this is due to us doing something sub-optimal with the spans here in the HIR lowering.
E.g.,
the expression with unknown type is the variable use
generics, but the error highlight covers the entire sub-expression ofexpr?. I assume this is due to us doing something sub-optimal with the spans here in the HIR lowering.