Corrected E0637.md based on test failure
This commit is contained in:
parent
58d0e67f50
commit
a804d476a6
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue