Remove blanket silencing of "type annotation needed" errors
Remove blanket check for existence of other errors before emitting "type annotation needed" errors, and add some eager checks to avoid adding obligations when they refer to types that reference `[type error]` in order to reduce unneded errors.
This commit is contained in:
parent
6ef275e6c3
commit
d9ab4ff9a3
50 changed files with 262 additions and 166 deletions
|
@ -22,7 +22,7 @@ mod base {
|
|||
|
||||
pub fn foo() {
|
||||
let _f: base::Foo = base::HasNew::new();
|
||||
//~^ ERROR type annotations required
|
||||
//~^ ERROR type annotations needed
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue