mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Update library/core/src/pin.rs
Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
@@ -790,7 +790,7 @@
|
||||
//!
|
||||
//! Structural pinning comes with a few extra requirements:
|
||||
//!
|
||||
//! 1. *Structural [`Unpin`].* A struct can be [`Unpin`] if, and only if, all of its
|
||||
//! 1. *Structural [`Unpin`].* A struct can be [`Unpin`] only if all of its
|
||||
//! structurally-pinned fields are, too. This is [`Unpin`]'s behavior by default.
|
||||
//! However, as a libray author, it is your responsibility not to write something like
|
||||
//! <code>impl\<T> [Unpin] for Struct\<T> {}</code> and then offer a method that provides
|
||||
|
||||
Reference in New Issue
Block a user