diff options
Diffstat (limited to 'tests/ui/rust_pinned.stderr')
-rw-r--r-- | tests/ui/rust_pinned.stderr | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ui/rust_pinned.stderr b/tests/ui/rust_pinned.stderr index a0fc0338..94079d9a 100644 --- a/tests/ui/rust_pinned.stderr +++ b/tests/ui/rust_pinned.stderr @@ -2,9 +2,10 @@ error[E0277]: `PhantomPinned` cannot be unpinned --> tests/ui/rust_pinned.rs:6:14 | 6 | type Pinned; - | ^^^^^^ within `Pinned`, the trait `Unpin` is not implemented for `PhantomPinned` + | ^^^^^^ within `Pinned`, the trait `Unpin` is not implemented for `PhantomPinned`, which is required by `Pinned: Unpin` | - = note: consider using `Box::pin` + = note: consider using the `pin!` macro + consider using `Box::pin` if you need to access the pinned value outside of the current scope note: required because it appears within the type `Pinned` --> tests/ui/rust_pinned.rs:10:12 | |