correct lifetime/basic-solution-2
This commit is contained in:
parent
0f8121a01d
commit
39f7a90bcb
|
@ -49,7 +49,7 @@ struct Example<'a, 'b> {
|
|||
}
|
||||
|
||||
/* Fix function signature */
|
||||
fn fix_me<'b>(foo: &Example<'b>) -> &'b NoCopyType
|
||||
fn fix_me<'b>(foo: &Example<'_, 'b>) -> &'b NoCopyType
|
||||
{ foo.b }
|
||||
|
||||
fn main()
|
||||
|
|
Loading…
Reference in New Issue