Rust - how can I return error of a different function?

后端 未结 0 1344
迷失自我
迷失自我 2021-02-01 14:44

Given two functions like these:

fn foo() -> Result> {
    // returns an error if something goes wrong
}

fn bar() -         


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