Sha256: 9a126182d1fe15a30ac60bb223b376aad747d11293d3cf512ad2dce546e3725c

Contents?: true

Size: 290 Bytes

Versions: 30

Compression:

Stored size: 290 Bytes

Contents

use std::marker::PhantomPinned;

use pin_project_lite::pin_project;

pin_project! {
    struct Foo<T> {
        #[pin]
        inner: T,
    }
}

struct __Origin {}

impl Unpin for __Origin {}

fn is_unpin<T: Unpin>() {}

fn main() {
    is_unpin::<Foo<PhantomPinned>>(); //~ ERROR E0277
}

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
wasmtime-23.0.2 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-22.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-21.0.1 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-20.0.2 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-20.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-18.0.3 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-17.0.1 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-17.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-16.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-15.0.1 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-15.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-14.0.4 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-14.0.3 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-14.0.1 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-14.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-13.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.12/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-12.0.1 ./ext/cargo-vendor/pin-project-lite-0.2.12/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-12.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.12/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-11.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.12/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-10.0.1 ./ext/cargo-vendor/pin-project-lite-0.2.12/tests/ui/pin_project/overlapping_unpin_struct.rs