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
There's a segfault when running the following code (it compiles fine).
fn main() { let v = ~[1,2,3,4]; let b = v.filter(|&i| i > 1); }
Changing |&i| i > 1 to |i| *i > 1 does not fix the problem. However, using the vec::filter function instead of the method does not segfault.
|&i| i > 1
|i| *i > 1
Possibly related: #4878
The text was updated successfully, but these errors were encountered:
I think this problem is caused by #4355.
Sorry, something went wrong.
I'm pretty sure this is a dup of #4439 -- follow that bug for more news!
Rollup merge of rust-lang#5637 - montrivo:feature/vec_resize_to_zero,…
0fff522
… r=yaahc,flip1995 new lint: vec_resize_to_zero implements rust-lang#5444 changelog: new lint vec_resize_to_zero
No branches or pull requests
There's a segfault when running the following code (it compiles fine).
Changing
|&i| i > 1
to|i| *i > 1
does not fix the problem. However, using the vec::filter function instead of the method does not segfault.Possibly related: #4878
The text was updated successfully, but these errors were encountered: