concat string using format!() and return to &'static str

后端 未结 0 1959
情歌与酒
情歌与酒 2020-12-14 06:53

I\'ll get error when compiled: \'returns value referencing data owned by the current function\'

here\'s the code:

fn return_static_str(a:          


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