Sha256: c0f2f178f779c9f0788fcf7ea697662f93fade1080cf7c014540d78aba01e100

Contents?: true

Size: 1.4 KB

Versions: 2

Compression:

Stored size: 1.4 KB

Contents

error[E0277]: `PhantomPinned` cannot be unpinned
  --> tests/ui/pin_project/overlapping_unpin_struct.rs:21:16
   |
21 |     is_unpin::<Foo<PhantomPinned>>(); //~ ERROR E0277
   |                ^^^^^^^^^^^^^^^^^^ within `_::__Origin<'_, PhantomPinned>`, the trait `Unpin` is not implemented for `PhantomPinned`
   |
   = 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 `_::__Origin<'_, PhantomPinned>`
  --> tests/ui/pin_project/overlapping_unpin_struct.rs:7:1
   |
7  | / pin_project! {
8  | |     struct Foo<T> {
9  | |         #[pin]
10 | |         inner: T,
11 | |     }
12 | | }
   | |_^
note: required for `Foo<PhantomPinned>` to implement `Unpin`
  --> tests/ui/pin_project/overlapping_unpin_struct.rs:7:1
   |
7  | / pin_project! {
8  | |     struct Foo<T> {
9  | |         #[pin]
10 | |         inner: T,
11 | |     }
12 | | }
   | |_^ unsatisfied trait bound introduced here
note: required by a bound in `is_unpin`
  --> tests/ui/pin_project/overlapping_unpin_struct.rs:18:16
   |
18 | fn is_unpin<T: Unpin>() {}
   |                ^^^^^ required by this bound in `is_unpin`
   = note: this error originates in the macro `$crate::__pin_project_make_unpin_impl` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.16/tests/ui/pin_project/overlapping_unpin_struct.stderr
wasmtime-28.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.16/tests/ui/pin_project/overlapping_unpin_struct.stderr