We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58d0e67 commit a804d47Copy full SHA for a804d47
src/librustc_error_codes/error_codes/E0637.md
@@ -15,11 +15,11 @@ more information, see [the book][bk-no].
15
16
Corrected underscore example:
17
```
18
-fn <'a>(str1: &'a str, str2: &'a str) -> &'a str {}
+fn foo<'a>(str1: &'a str, str2: &'a str) -> &'a str {}
19
20
21
Erroneous example with const generic:
22
-```compile_fail,E0637
+```compile_fail,E0261,E0637,E0658
23
struct A<const N: &u8>;
24
//~^ ERROR `&` without an explicit lifetime name cannot be used here
25
trait B {}
0 commit comments