Sha256: cb3d6d4087b8b4c917bc71e55764775f6bb018a77cda5c6b726afacd66789859

Contents?: true

Size: 337 Bytes

Versions: 8

Compression:

Stored size: 337 Bytes

Contents

// SPDX-License-Identifier: Apache-2.0 OR MIT

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

8 entries across 8 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.rs
wasmtime-28.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.16/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-27.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.15/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-26.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.15/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-25.0.2 ./ext/cargo-vendor/pin-project-lite-0.2.14/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-25.0.1 ./ext/cargo-vendor/pin-project-lite-0.2.14/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-25.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.14/tests/ui/pin_project/overlapping_unpin_struct.rs
wasmtime-24.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.14/tests/ui/pin_project/overlapping_unpin_struct.rs