Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/test-utils/src/minicore.rs')
-rw-r--r--crates/test-utils/src/minicore.rs15
1 files changed, 14 insertions, 1 deletions
diff --git a/crates/test-utils/src/minicore.rs b/crates/test-utils/src/minicore.rs
index c1f2b08be9..26e0f46705 100644
--- a/crates/test-utils/src/minicore.rs
+++ b/crates/test-utils/src/minicore.rs
@@ -35,7 +35,7 @@
//! error: fmt
//! fmt: option, result, transmute, coerce_unsized, copy, clone, derive
//! fmt_before_1_89_0: fmt
-//! fn: tuple
+//! fn: sized, tuple
//! from: sized, result
//! future: pin
//! coroutine: pin
@@ -326,6 +326,18 @@ pub mod clone {
*self
}
}
+
+ impl<T: Clone> Clone for [T; 0] {
+ fn clone(&self) -> Self {
+ []
+ }
+ }
+
+ impl<T: Clone> Clone for [T; 1] {
+ fn clone(&self) -> Self {
+ [self[0].clone()]
+ }
+ }
// endregion:builtin_impls
// region:derive
@@ -1036,6 +1048,7 @@ pub mod ops {
#[lang = "coroutine"]
pub trait Coroutine<R = ()> {
+ #[lang = "coroutine_yield"]
type Yield;
#[lang = "coroutine_return"]
type Return;