#[cfg(feature = "alloc")]
mod alloc_tests {
use value_traits::slices::*;
#[test]
fn test() {
#[cfg(all(feature = "alloc", not(feature = "std")))]
extern crate alloc;
#[cfg(all(feature = "alloc", not(feature = "std")))]
use alloc::vec;
let s = vec![1_i32, 2, 3, 4, 5];
test_bounds(&s);
}
fn test_bounds(s: &impl SliceByValueSubslice) {
let mut _r = s.index_subslice(0..2);
_r = s.index_subslice(0..);
_r = s.index_subslice(..2);
_r = s.index_subslice(..=2);
_r = s.index_subslice(0..=2);
_r = s.index_subslice(..);
}
}