From 642d27d40a72908324886d80cd991e02f9707e75 Mon Sep 17 00:00:00 2001 From: Steve Heindel Date: Fri, 29 Jan 2021 19:07:39 -0500 Subject: [PATCH] Fix typo in E0759 --- compiler/rustc_error_codes/src/error_codes/E0759.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_error_codes/src/error_codes/E0759.md b/compiler/rustc_error_codes/src/error_codes/E0759.md index 6d525310f75..2fe5ada257f 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0759.md +++ b/compiler/rustc_error_codes/src/error_codes/E0759.md @@ -27,7 +27,7 @@ fn bar(x: &i32) -> Box { // ok! } ``` -Both [`dyn Trait`] and [`impl Trait`] in return types have a an implicit +Both [`dyn Trait`] and [`impl Trait`] in return types have an implicit `'static` requirement, meaning that the value implementing them that is being returned has to be either a `'static` borrow or an owned value.