diff options
| author | Chase Wilson <me@chasewilson.dev> | 2021-07-31 18:16:34 -0500 |
|---|---|---|
| committer | Chase Wilson <me@chasewilson.dev> | 2021-08-09 10:24:02 -0500 |
| commit | 9d8081e8b6e4082ed06bd984cd59ccf39741c9b7 (patch) | |
| tree | efcdd99c84e90f12a525ab231d149ae18557f910 | |
| parent | eea3520a8fc1c4a03626ee4f9d74b6d9833db54c (diff) | |
| download | rust-9d8081e8b6e4082ed06bd984cd59ccf39741c9b7.tar.gz rust-9d8081e8b6e4082ed06bd984cd59ccf39741c9b7.zip | |
Enabled unzip_option feature for core tests & unzip docs
| -rw-r--r-- | library/core/src/option.rs | 2 | ||||
| -rw-r--r-- | library/core/tests/lib.rs | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/library/core/src/option.rs b/library/core/src/option.rs index 57553865bd0..d65915cdc71 100644 --- a/library/core/src/option.rs +++ b/library/core/src/option.rs @@ -1408,6 +1408,8 @@ impl<T, U> Option<(T, U)> { /// # Examples /// /// ``` + /// #![feature(unzip_option)] + /// /// let x = Some((1, "hi")); /// let y = None::<(u8, u32)>; /// diff --git a/library/core/tests/lib.rs b/library/core/tests/lib.rs index c7756a503c3..cc3527f98ec 100644 --- a/library/core/tests/lib.rs +++ b/library/core/tests/lib.rs @@ -66,6 +66,7 @@ #![feature(slice_group_by)] #![feature(trusted_random_access)] #![feature(unsize)] +#![feature(unzip_option)] #![deny(unsafe_op_in_unsafe_fn)] extern crate test; |
