Add more checks for unnamed_field
during HIR analysis
This commit is contained in:
parent
ba824a2e25
commit
62b789fba4
8 changed files with 161 additions and 11 deletions
|
@ -198,6 +198,8 @@ hir_analysis_invalid_union_field =
|
|||
hir_analysis_invalid_union_field_sugg =
|
||||
wrap the field type in `ManuallyDrop<...>`
|
||||
|
||||
hir_analysis_invalid_unnamed_field_ty = unnamed fields can only have struct or union types
|
||||
|
||||
hir_analysis_late_bound_const_in_apit = `impl Trait` can only mention const parameters from an fn or impl
|
||||
.label = const parameter declared here
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue