mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Diagnose private fields in record constructor
This commit is contained in:
parent
c405509f2e
commit
55c75450fb
6 changed files with 84 additions and 27 deletions
|
@ -195,6 +195,7 @@ pub(crate) type InferResult<T> = Result<InferOk<T>, TypeError>;
|
|||
pub enum InferenceDiagnostic {
|
||||
NoSuchField {
|
||||
expr: ExprId,
|
||||
private: bool,
|
||||
},
|
||||
PrivateField {
|
||||
expr: ExprId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue