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 {}