What is the meaning of 'a: 'a in rust life cycle parameters

后端 未结 0 1004
迷失自我
迷失自我 2021-01-02 09:49
#![allow(unused)]

fn f<\'a>() {}
fn g<\'a: \'a>() {}

fn main() {
    // let pf = f::<\'static> as fn();
    let pg = g::<\'static> as fn();         


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