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
Originally from rust-lang/rust#13840:
This compiles:
fn isum<'a, I: Iterator<&'a i32>>(mut it: I) -> int { it.fold(0, |a, b| a + *b) }
This should be the same, but doesn't compile:
fn isum<I: Iterator<&i32>>(mut it: I) -> i32 { it.fold(0, |a, b| a + *b)}
The compiler complains of a "missing lifetime specifier" at the &int.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Originally from rust-lang/rust#13840:
This compiles:
This should be the same, but doesn't compile:
The compiler complains of a "missing lifetime specifier" at the &int.
The text was updated successfully, but these errors were encountered: