diff options
Diffstat (limited to 'library/alloc/src/prelude/mod.rs')
| -rw-r--r-- | library/alloc/src/prelude/mod.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/library/alloc/src/prelude/mod.rs b/library/alloc/src/prelude/mod.rs new file mode 100644 index 00000000000..0534ad3edc7 --- /dev/null +++ b/library/alloc/src/prelude/mod.rs @@ -0,0 +1,15 @@ +//! The alloc Prelude +//! +//! The purpose of this module is to alleviate imports of commonly-used +//! items of the `alloc` crate by adding a glob import to the top of modules: +//! +//! ``` +//! # #![allow(unused_imports)] +//! #![feature(alloc_prelude)] +//! extern crate alloc; +//! use alloc::prelude::v1::*; +//! ``` + +#![unstable(feature = "alloc_prelude", issue = "58935")] + +pub mod v1; |
