mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
f9477a77c5
rustc_typeck: improve diagnostics for -> _ fn return type This should implement IIUC the mentioned issue. ~~I'm not sure if there is a better way than `get_infer_ret_ty` to get/check the return type without code duplication.~~ ~~Also, is this unwrap be okay `ty::Binder::bind(*tables.liberated_fn_sigs().get(hir_id).unwrap())`?~~ r? @eddyb Closes: https://github.com/rust-lang/rust/issues/56132