// Type arguments in unresolved entities (reporting errors before type checking) // should have their types recorded. trait Tr {} fn local_type() { let _: Nonexistent; //~ ERROR cannot find type `Nonexistent` in this scope } fn ufcs_trait() { >::nonexistent(); //~ ERROR cannot find method or associated constant `nonexistent` } fn ufcs_item() { NonExistent::Assoc::; //~ ERROR undeclared type `NonExistent` } fn method() { nonexistent.nonexistent::(); //~ ERROR cannot find value `nonexistent` } fn closure() { let _ = |a, b: _| -> _ { 0 }; //~ ERROR type annotations needed } fn main() {}