summary refs log tree commit diff stats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index b6e28fd..b8a4f86 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -232,7 +232,7 @@ pub struct UBCheck<T: ?Sized>(core::marker::PhantomData<T>);
 
 #[cfg(all(not(feature="alloc"), not(feature="nightly")))]
 #[doc(hidden)]
-pub struct UBCheck<T>(T);
+pub struct UBCheck<T>(T); // use feature "alloc" or "nightly" for T: ?Sized
 
 #[cfg(feature="nightly")]
 // SAFETY: dropck's like a Box<T>, but is no-alloc friendly.