Sha256: d7e087b6852338fabe7edf39529c8f893a426b4d0c6aba2d2a6be0d95f739cdc

Contents?: true

Size: 407 Bytes

Versions: 8

Compression:

Stored size: 407 Bytes

Contents

use pin_project_lite::pin_project;
use std::pin::Pin;

pin_project! {
    #[project = EnumProj]
    #[project_ref = EnumProjRef]
    enum Enum<T, U> {
        Struct {
            #[pin]
            pinned: T,
            unpinned: U,
        },
        Unit,
    }
    impl<T, U> PinnedDrop for Enum<T, U> {
        fn drop(this: Pin<&mut Self>) {
            let _ = this;
        }
    }
}

fn main() {}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wasmtime-9.0.1 ./ext/cargo-vendor/pin-project-lite-0.2.9/tests/expand/pinned_drop/enum.rs
wasmtime-8.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.9/tests/expand/pinned_drop/enum.rs
wasmtime-7.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.9/tests/expand/pinned_drop/enum.rs
wasmtime-6.0.1 ./ext/cargo-vendor/pin-project-lite-0.2.9/tests/expand/pinned_drop/enum.rs
wasmtime-6.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.9/tests/expand/pinned_drop/enum.rs
wasmtime-5.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.9/tests/expand/pinned_drop/enum.rs
wasmtime-0.4.1 ./ext/cargo-vendor/pin-project-lite-0.2.9/tests/expand/pinned_drop/enum.rs
wasmtime-0.4.0 ./ext/cargo-vendor/pin-project-lite-0.2.9/tests/expand/pinned_drop/enum.rs