Issue with lifetime parameters and function pointers

后端 未结 0 1183
轻奢々
轻奢々 2020-12-03 05:53

Consider this code:

struct WithLifetime<\'a> {
    s: &\'a str
}

impl WithLifetime<\'_> {
    fn in_impl(&self) -> bool {
        self         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题