#![allow(unused_variables)] #![feature(binary_heap_drain_sorted)] fn main() { use std::collections::BinaryHeap; let mut heap = BinaryHeap::from([1, 2, 3, 4, 5]); assert_eq!(heap.len(), 5); drop(heap.drain_sorted()); assert_eq!(heap.len(), 0); }