mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 20:49: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 */
|
||||
fn fix_me<'b>(foo: &Example<'b>) -> &'b NoCopyType
|
||||
fn fix_me<'b>(foo: &Example<'_, 'b>) -> &'b NoCopyType
|
||||
{ foo.b }
|
||||
|
||||
fn main()
|
||||
|
Reference in New Issue
Block a user