Fix diagnostics for unresolved patterns
This commit is contained in:
@@ -2408,7 +2408,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else if let Err(false) = self.resolve_path(pat_id, &path, 0, ValueNS) {
|
||||||
resolve_error(
|
resolve_error(
|
||||||
self,
|
self,
|
||||||
path.span,
|
path.span,
|
||||||
|
|||||||
@@ -42,4 +42,8 @@ fn main() {
|
|||||||
//~^ ERROR mismatched types
|
//~^ ERROR mismatched types
|
||||||
//~| expected `char`
|
//~| expected `char`
|
||||||
//~| found `bool`
|
//~| found `bool`
|
||||||
|
|
||||||
|
match () {
|
||||||
|
E::V => {} //~ ERROR failed to resolve. Use of undeclared type or module `E`
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user