From a804d476a670e29f2ac55d97c72ae0bd456b3f84 Mon Sep 17 00:00:00 2001 From: Josh White Date: Sat, 8 Feb 2020 08:14:28 -0500 Subject: [PATCH] Corrected E0637.md based on test failure --- src/librustc_error_codes/error_codes/E0637.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_error_codes/error_codes/E0637.md b/src/librustc_error_codes/error_codes/E0637.md index 9b5db8fe733d..a79a2fda1a0e 100644 --- a/src/librustc_error_codes/error_codes/E0637.md +++ b/src/librustc_error_codes/error_codes/E0637.md @@ -15,11 +15,11 @@ more information, see [the book][bk-no]. Corrected underscore example: ``` -fn <'a>(str1: &'a str, str2: &'a str) -> &'a str {} +fn foo<'a>(str1: &'a str, str2: &'a str) -> &'a str {} ``` Erroneous example with const generic: -```compile_fail,E0637 +```compile_fail,E0261,E0637,E0658 struct A; //~^ ERROR `&` without an explicit lifetime name cannot be used here trait B {}