1
Fork 0

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:
Esteban Küber 2019-09-24 11:05:49 -07:00
parent 6ef275e6c3
commit d9ab4ff9a3
50 changed files with 262 additions and 166 deletions

View file

@ -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() { }