We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
fn help(f: fn(a: &int, b: &int) -> int) {} // OK fn help2<F: Fn(&int, &int) -> int>(f: F) {} // error
->
hhh.rs:3:16: 3:20 error: missing lifetime specifier [E0106] hhh.rs:3 fn help2<F: Fn(&int, &int) -> int>(f: F) {} ^~~~ hhh.rs:3:22: 3:26 error: missing lifetime specifier [E0106] hhh.rs:3 fn help2<F: Fn(&int, &int) -> int>(f: F) {} ^~~~
It seems like it can't possibly be right that this would work for one but not the other.
The text was updated successfully, but these errors were encountered:
Covered by rust-lang/rfcs#387.
Sorry, something went wrong.
I see.
No branches or pull requests
->
It seems like it can't possibly be right that this would work for one but not the other.
The text was updated successfully, but these errors were encountered: