Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[第五章] 5.5.1节: 为结构体Foo实现方法 #303

Open
Kreedzt opened this issue Sep 16, 2020 · 1 comment
Open

[第五章] 5.5.1节: 为结构体Foo实现方法 #303

Kreedzt opened this issue Sep 16, 2020 · 1 comment
Labels
第五章 第五章

Comments

@Kreedzt
Copy link

Kreedzt commented Sep 16, 2020

文本或排版错误

方法定义中的生命周期参数 中:
如果new和first方法签名中不添加生命周期参数,则会报错:


实际上仅 new 方法需要需要添加生命周期参数, first方法中的生命周期参数可以省略
Rust Playground

@ZhangHanDong ZhangHanDong added the 第五章 第五章 label Sep 19, 2020
@ZhangHanDong
Copy link
Owner

@Kreedzt 感谢反馈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
第五章 第五章
Projects
None yet
Development

No branches or pull requests

2 participants