]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #84520 - hameerabbasi:fn-as-ty, r=lcnr
authorDylan DPC <dylan.dpc@gmail.com>
Sun, 25 Apr 2021 21:15:16 +0000 (23:15 +0200)
committerGitHub <noreply@github.com>
Sun, 25 Apr 2021 21:15:16 +0000 (23:15 +0200)
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`

1  2 
compiler/rustc_typeck/src/astconv/generics.rs