Corrected E0637.md based on test failure

This commit is contained in:
Josh White 2020-02-08 08:14:28 -05:00
parent 58d0e67f50
commit a804d476a6

View file

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