File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ error[E0277]: `PhantomPinned` cannot be unpinned
44
44
15 | assert_unpin::<ffi::Opaque>();
45
45
| ^^^^^^^^^^^ within `ffi::Opaque`, the trait `Unpin` is not implemented for `PhantomPinned`
46
46
|
47
- = note: consider using `Box::pin`
47
+ = note: consider using the `pin!` macro
48
+ consider using `Box::pin` if you need to access the pinned value outside of the current scope
48
49
= note: required because it appears within the type `PhantomData<PhantomPinned>`
49
50
= note: required because it appears within the type `Opaque`
50
51
note: required because it appears within the type `Opaque`
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ error[E0277]: `PhantomPinned` cannot be unpinned
4
4
6 | type Pinned;
5
5
| ^^^^^^ within `Pinned`, the trait `Unpin` is not implemented for `PhantomPinned`
6
6
|
7
- = note: consider using `Box::pin`
7
+ = note: consider using the `pin!` macro
8
+ consider using `Box::pin` if you need to access the pinned value outside of the current scope
8
9
note: required because it appears within the type `Pinned`
9
10
--> tests/ui/rust_pinned.rs:10:12
10
11
|
You can’t perform that action at this time.
0 commit comments