]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #41838 - z1mvader:fix_fn_args_coerce_closure, r=nikomatsakis
authorCorey Farwell <coreyf@rwell.org>
Tue, 9 May 2017 02:34:52 +0000 (22:34 -0400)
committerGitHub <noreply@github.com>
Tue, 9 May 2017 02:34:52 +0000 (22:34 -0400)
Fixed argument inference for closures when coercing into 'fn'

This fixes https://github.com/rust-lang/rust/issues/41755. The tests  `compile-fail/closure-no-fn.rs` and `compile-fail/issue-40000.rs` were modified. A new test `run-pass/closure_to_fn_coercion-expected-types.rs` was added

r? @nikomatsakis


Trivial merge