mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-03 17:35:28 +03:00
13 lines
248 B
Rust
13 lines
248 B
Rust
use std::alloc::System;
|
|
use std::collections::VecDeque;
|
|
|
|
#[global_allocator]
|
|
static ALLOCATOR: System = System;
|
|
|
|
fn main() {
|
|
let mut deque = VecDeque::with_capacity(32);
|
|
deque.push_front(0);
|
|
deque.reserve(31);
|
|
deque.push_back(0);
|
|
}
|