What's the difference between lifetimes of immutable and mutable references?

前端 未结 0 1440
-上瘾入骨i
-上瘾入骨i 2020-12-02 17:25

There is a struct definition as follows.

struct Test<\'a> {
    t: &\'a str,
}
impl<\'a> Test<\'a&         


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