Skip to content
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

vector::times panics on empty vector #6

Closed
VladimirMarkelov opened this issue May 8, 2017 · 0 comments
Closed

vector::times panics on empty vector #6

VladimirMarkelov opened this issue May 8, 2017 · 0 comments

Comments

@VladimirMarkelov
Copy link

  let vv1: Vec<i32> = Vec::new();
  let vv2: Vec<i32> = Vec::new();
  assert_eq!(vv1.times(4), vv2);

thread 'it_multiplies' panicked at 'index out of bounds: the len is 0 but the index is 0', src\libcollections\vec.rs:1422
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant