about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJosh White <jwhite927@gmail.com>2020-02-08 08:14:28 -0500
committerJosh White <jwhite927@gmail.com>2020-02-08 08:14:28 -0500
commita804d476a670e29f2ac55d97c72ae0bd456b3f84 (patch)
tree78306cf0bb495daec8fe376b55053ea26b8a519b
parent58d0e67f504fb55ccbe1094265d029a10bc168c7 (diff)
downloadrust-a804d476a670e29f2ac55d97c72ae0bd456b3f84.tar.gz
rust-a804d476a670e29f2ac55d97c72ae0bd456b3f84.zip
Corrected E0637.md based on test failure
-rw-r--r--src/librustc_error_codes/error_codes/E0637.md4
1 files 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 9b5db8fe733..a79a2fda1a0 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<const N: &u8>;
 //~^ ERROR `&` without an explicit lifetime name cannot be used here
 trait B {}