use std::slice;
use std::fmt;
use std::mem;
-use std::collections::range::RangeArgument;
-use std::collections::Bound::{Excluded, Included, Unbounded};
use std::mem::ManuallyDrop;
+use std::ops::Bound::{Excluded, Included, Unbounded};
+use std::ops::RangeBounds;
pub unsafe trait Array {
type Element;
}
pub fn drain<R>(&mut self, range: R) -> Drain<A>
- where R: RangeArgument<usize>
+ where R: RangeBounds<usize>
{
// Memory safety
//