From cb8ea01096fb14ea25bbe69fd0b92f7e7752cb78 Mon Sep 17 00:00:00 2001 From: Nikita Tomashevich Date: Sat, 21 Jan 2023 18:16:53 +0300 Subject: Port RefLongerThanData --- compiler/rustc_error_messages/locales/en-US/infer.ftl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compiler/rustc_error_messages') diff --git a/compiler/rustc_error_messages/locales/en-US/infer.ftl b/compiler/rustc_error_messages/locales/en-US/infer.ftl index 0fcde811740..c012973f1dd 100644 --- a/compiler/rustc_error_messages/locales/en-US/infer.ftl +++ b/compiler/rustc_error_messages/locales/en-US/infer.ftl @@ -150,6 +150,8 @@ infer_region_explanation = {$pref_kind -> [lf_must_outlive] but lifetime parameter must outlive [type_valid_for] the type is valid for [borrow_lasts_for] but the borrow lasts for + [pointer_valid_for] the pointer is valid for + [data_valid_for] but the referenced data is only valid for [empty] {""} }{$pref_kind -> [empty] {""} @@ -175,6 +177,7 @@ infer_outlives_bound = lifetime of the source pointer does not outlive lifetime infer_fullfill_req_lifetime = the type `{$ty}` does not fulfill the required lifetime infer_lf_bound_not_satisfied = lifetime bound not satisfied infer_borrowed_too_long = a value of type `{$ty}` is borrowed for too long +infer_ref_longer_than_data = in type `{$ty}`, reference has a longer lifetime than the data it references infer_mismatched_static_lifetime = incompatible lifetime on type infer_does_not_outlive_static_from_impl = ...does not necessarily outlive the static lifetime introduced by the compatible `impl` -- cgit 1.4.1-3-g733a5