Do not suggest nonsensical types when the type inference is failing on `impl Trait` or anonymous closures.