You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use std::collections::Bitv;fnmain(){letmut bitv = Bitv::with_capacity((!0u32)asuint,false);
bitv.grow(1,true);println!("{}", bitv.get(0));}
task '<main>' failed at 'assertion failed: i < self.nbits', ...
since the grow is wrapping the internal (32-bit) uint. (A naive bit counter for a bit vector needs 3 additional bits over a uint to be guaranteed to work always.)