Skip to content

Commit a804d47

Browse files
committed
Corrected E0637.md based on test failure
1 parent 58d0e67 commit a804d47

File tree

1 file changed

+2
-2
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+2
-2
lines changed

src/librustc_error_codes/error_codes/E0637.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ more information, see [the book][bk-no].
1515

1616
Corrected underscore example:
1717
```
18-
fn <'a>(str1: &'a str, str2: &'a str) -> &'a str {}
18+
fn foo<'a>(str1: &'a str, str2: &'a str) -> &'a str {}
1919
```
2020

2121
Erroneous example with const generic:
22-
```compile_fail,E0637
22+
```compile_fail,E0261,E0637,E0658
2323
struct A<const N: &u8>;
2424
//~^ ERROR `&` without an explicit lifetime name cannot be used here
2525
trait B {}

0 commit comments

Comments
 (0)