// Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
//

// A test for VecDeque::drain

use std::{collections::VecDeque, sync::Mutex};

pub fn main() {
    let q: Mutex<VecDeque<i32>> = Mutex::new(VecDeque::with_capacity(10_000));
    let mut dq = q.lock().unwrap();
    let _v: Vec<i32> = dq.drain(..).collect();
}
