We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5335530 commit fc334ceCopy full SHA for fc334ce
library/core/src/marker.rs
@@ -787,15 +787,15 @@ unsafe impl<T: ?Sized> Freeze for &mut T {}
787
/// type Foo = <Bar as Identity>::Identity;
788
/// ```
789
#[stable(feature = "pin", since = "1.33.0")]
790
-pub trait Identity: Sized {
+pub trait Identity {
791
#[cfg_attr(not(bootstrap), lang = "identity")]
792
793
- /// lol
794
- type Identity;
+ /// doc
+ type Identity: ?Sized;
795
}
796
797
798
-impl<T> Identity for T {
+impl<T: ?Sized> Identity for T {
799
type Identity = T;
800
801
0 commit comments