From: Dylan DPC Date: Sun, 25 Apr 2021 21:15:16 +0000 (+0200) Subject: Rollup merge of #84520 - hameerabbasi:fn-as-ty, r=lcnr X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=139749934b174cbe556d4e026a76461e9aa8d0b3;p=rust.git Rollup merge of #84520 - hameerabbasi:fn-as-ty, r=lcnr Improve diagnostics for function passed when a type was expected. This PR improves diagnostics, it provides more information when a function is passed where a type is expected. r? `@lcnr` --- 139749934b174cbe556d4e026a76461e9aa8d0b3