We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f74343 commit 15f68a6Copy full SHA for 15f68a6
core/src/marker.rs
@@ -823,7 +823,7 @@ unsafe impl<T: ?Sized> Freeze for &mut T {}
823
/// [`pin` module]: crate::pin
824
#[stable(feature = "pin", since = "1.33.0")]
825
#[rustc_on_unimplemented(
826
- note = "consider using `Box::pin`",
+ note = "consider using the `pin!` macro\nconsider using `Box::pin` if you need to access the pinned value outside of the current scope",
827
message = "`{Self}` cannot be unpinned"
828
)]
829
#[lang = "unpin"]
0 commit comments