为了试验 Hyper,我从GET 示例开始。除了该示例无法编译(no method `get` in `client`
)这一事实之外,我将我的问题提炼为一行:
fn temp() {
let client = Client::new();
}
此代码不会编译:
unable to infer enough type information about `_`; type annotations or generic parameter binding required [E0282]