mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
parent
bf37fe23f3
commit
641b78a162
@ -463,6 +463,10 @@ fn closure_ret_hints(
|
||||
return None;
|
||||
}
|
||||
|
||||
if closure.ret_type().is_some() {
|
||||
return None;
|
||||
}
|
||||
|
||||
let param_list = match closure.body() {
|
||||
Some(ast::Expr::BlockExpr(_)) => closure.param_list()?,
|
||||
_ => return None,
|
||||
|
Loading…
Reference in New Issue
Block a user