mirror of
https://github.com/rust-lang/rust
synced 2024-10-14 12:33:57 +00:00
Fix diagnostics for unresolved patterns
This commit is contained in:
parent
ae33aa74f4
commit
1a374b8d11
|
@ -2408,7 +2408,7 @@ fn resolve_pattern(&mut self,
|
|||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
} else if let Err(false) = self.resolve_path(pat_id, &path, 0, ValueNS) {
|
||||
resolve_error(
|
||||
self,
|
||||
path.span,
|
||||
|
|
|
@ -42,4 +42,8 @@ fn main() {
|
|||
//~^ ERROR mismatched types
|
||||
//~| expected `char`
|
||||
//~| found `bool`
|
||||
|
||||
match () {
|
||||
E::V => {} //~ ERROR failed to resolve. Use of undeclared type or module `E`
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue