about summary refs log tree commit diff
path: root/tests/rustdoc-ui/coverage/enum-tuple.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2023-02-11 11:15:55 +0530
committerGitHub <noreply@github.com>2023-02-11 11:15:55 +0530
commit400b03ac3c3259506a23515197e49767d6eb5170 (patch)
treea1ca1d9444fa71f889a9a554605718395f44002c /tests/rustdoc-ui/coverage/enum-tuple.rs
parent0e8f0b03cd94d9611063daaa516af2ae3489c6b5 (diff)
parent0eba2f3c16b4e2792b75762c7643f3a09c9f1a3d (diff)
downloadrust-400b03ac3c3259506a23515197e49767d6eb5170.tar.gz
rust-400b03ac3c3259506a23515197e49767d6eb5170.zip
Rollup merge of #107098 - compiler-errors:pat-mismatch-fn-call, r=lcnr
Suggest function call on pattern type mismatch

Fixes #101208

This could definitely be generalized to support more suggestions in pattern matches. We can't use all of [`FnCtxt::emit_type_mismatch_suggestions`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir_typeck/fn_ctxt/struct.FnCtxt.html#method.emit_type_mismatch_suggestions), but it's on my to-do list to play around with more suggestions that would be productive in this position.
Diffstat (limited to 'tests/rustdoc-ui/coverage/enum-tuple.rs')
0 files changed, 0 insertions, 0 deletions