From 08c220ab2c4651f38d3029898706f2a996bf2c6b Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 17 Jun 2021 20:49:49 +0300 Subject: internal: add default to minicore --- crates/test_utils/src/minicore.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'crates/test_utils/src') diff --git a/crates/test_utils/src/minicore.rs b/crates/test_utils/src/minicore.rs index e6d2301c7..4093a04bc 100644 --- a/crates/test_utils/src/minicore.rs +++ b/crates/test_utils/src/minicore.rs @@ -22,6 +22,7 @@ //! result: //! iterator: option //! iterators: iterator +//! default: sized pub mod marker { // region:sized @@ -37,6 +38,14 @@ pub mod marker { // endregion:unsize } +// region:default +pub mod default { + pub trait Default: Sized { + fn default() -> Self; + } +} +// endregion:default + pub mod ops { // region:coerce_unsized mod unsize { @@ -309,6 +318,7 @@ pub mod iter { pub mod prelude { pub mod v1 { pub use crate::{ + default::Default, // :default iter::{IntoIterator, Iterator}, // :iterator marker::Sized, // :sized ops::{Fn, FnMut, FnOnce}, // :fn -- cgit v1.2.3