We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 467d367 commit 3fb6d6bCopy full SHA for 3fb6d6b
compiler/rustc_infer/src/infer/error_reporting/mod.rs
@@ -1928,7 +1928,8 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
1928
use crate::traits::ObligationCauseCode::MatchExpressionArm;
1929
let mut suggestions = Vec::new();
1930
let span = trace.cause.span();
1931
- if let Some((expected, found)) = trace.values.ty() {
+ let values = self.resolve_vars_if_possible(trace.values);
1932
+ if let Some((expected, found)) = values.ty() {
1933
match (expected.kind(), found.kind()) {
1934
(ty::Tuple(_), ty::Tuple(_)) => {}
1935
// If a tuple of length one was expected and the found expression has
0 commit comments