How does Rust infer resultant types from From::<>::from()?

后端 未结 2 630
深忆病人
深忆病人 2021-01-27 20:32

In this snippet from Hyper\'s example, there\'s a bit of code that I\'ve annotated with types that compiles successfully:

.map_err(|x: std::io::Error| -> hype         


        
2条回答
提交回复
热议问题