Now passes tests
This commit is contained in:
parent
467d367df7
commit
3fb6d6b2f4
1 changed files with 2 additions and 1 deletions
|
@ -1928,7 +1928,8 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
|
|||
use crate::traits::ObligationCauseCode::MatchExpressionArm;
|
||||
let mut suggestions = Vec::new();
|
||||
let span = trace.cause.span();
|
||||
if let Some((expected, found)) = trace.values.ty() {
|
||||
let values = self.resolve_vars_if_possible(trace.values);
|
||||
if let Some((expected, found)) = values.ty() {
|
||||
match (expected.kind(), found.kind()) {
|
||||
(ty::Tuple(_), ty::Tuple(_)) => {}
|
||||
// If a tuple of length one was expected and the found expression has
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue