mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-25 13:39:41 +00:00
Merge pull request #155 from Skarlett/master
correct lifetime/basic-solution-2
This commit is contained in:
@ -49,7 +49,7 @@ struct Example<'a, 'b> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Fix function signature */
|
/* Fix function signature */
|
||||||
fn fix_me<'b>(foo: &Example<'b>) -> &'b NoCopyType
|
fn fix_me<'b>(foo: &Example<'_, 'b>) -> &'b NoCopyType
|
||||||
{ foo.b }
|
{ foo.b }
|
||||||
|
|
||||||
fn main()
|
fn main()
|
||||||
|
Reference in New Issue
Block a user