1
Fork 0

Do not allow Drop impl on foreign fundamental types

This commit is contained in:
Michael Goulet 2022-07-21 22:00:15 +00:00
parent 40336865fe
commit fd934c99bc
10 changed files with 51 additions and 18 deletions

View file

@ -24,8 +24,8 @@ typeck_lifetimes_or_bounds_mismatch_on_trait =
.generics_label = lifetimes in impl do not match this {$item_kind} in trait
typeck_drop_impl_on_wrong_item =
the `Drop` trait may only be implemented for structs, enums, and unions
.label = must be a struct, enum, or union
the `Drop` trait may only be implemented for local structs, enums, and unions
.label = must be a struct, enum, or union in the current crate
typeck_field_already_declared =
field `{$field_name}` is already declared