the `?` operator can only be used in a function that returns `Result` (but the function returns a `Result`)

后端 未结 0 1509
你的背包
你的背包 2021-02-05 19:19

I have function that returns a Result and I am using the ? operation on it. What is the catch? Code:

pub fn open(filename: &str) -&g         


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