Skip to content

Commit 28f8e62

Browse files
committed
Impl Default for PhantomPinned
1 parent 4d63435 commit 28f8e62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/marker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ pub auto trait Unpin {}
772772
///
773773
/// If a type contains a `PhantomPinned`, it will not implement `Unpin` by default.
774774
#[stable(feature = "pin", since = "1.33.0")]
775-
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
775+
#[derive(Debug, Default, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
776776
pub struct PhantomPinned;
777777

778778
#[stable(feature = "pin", since = "1.33.0")]

0 commit comments

Comments
 (0)