1
Fork 0

Add more checks for unnamed_field during HIR analysis

This commit is contained in:
clubby789 2024-02-16 18:48:09 +00:00
parent ba824a2e25
commit 62b789fba4
8 changed files with 161 additions and 11 deletions

View file

@ -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