New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem inferring generic types only used in returns #5929
Comments
xunilrj
changed the title
Problem with infering generic types only used in returns
Problem inferring generic types only used in returns
Apr 26, 2024
I think the issue is that at This example compiles, and runs! script;
fn input_predicate_data2<T> () -> bool {
true
}
fn main() -> bool {
let input: bool = input_predicate_data2();
input == true
}
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This generates the following error:
But the fully typed, and even the explicit version works fine
The text was updated successfully, but these errors were encountered: