blob: 42197ff102d72bd92afaca1c4764209e50bfb0c3 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//@ run-pass
// Ensures that driftsort doesn't crash under specific slice
// length and memory size.
// Based on the example given in https://github.com/rust-lang/rust/issues/136103.
fn main() {
let n = 127;
let mut objs: Vec<_> =
(0..n).map(|i| [(i % 2) as u8; 125001]).collect();
objs.sort();
}
|