Sha256: 6a24ac14e61e5d3e3b495f49d226318ec500e5aa46f34acf8e4f3e0827bd9604

Contents?: true

Size: 399 Bytes

Versions: 8

Compression:

Stored size: 399 Bytes

Contents

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

use pin_project_lite::pin_project;

pin_project! { //~ ERROR reference to packed field is unaligned
    #[repr(packed, C)]
    struct Packed {
        #[pin]
        field: u16,
    }
}

pin_project! { //~ ERROR reference to packed field is unaligned
    #[repr(packed(2))]
    struct PackedN {
        #[pin]
        field: u32,
    }
}

fn main() {}

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