Sha256: 2ede405a0d101eb843ea83c2836cc8399da54c105776f2c795f3138e03a1e5ef

Contents?: true

Size: 385 Bytes

Versions: 8

Compression:

Stored size: 385 Bytes

Contents

#![allow(unaligned_references)]

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-9.0.1 ./ext/cargo-vendor/pin-project-lite-0.2.9/tests/ui/pin_project/packed.rs
wasmtime-8.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.9/tests/ui/pin_project/packed.rs
wasmtime-7.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.9/tests/ui/pin_project/packed.rs
wasmtime-6.0.1 ./ext/cargo-vendor/pin-project-lite-0.2.9/tests/ui/pin_project/packed.rs
wasmtime-6.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.9/tests/ui/pin_project/packed.rs
wasmtime-5.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.9/tests/ui/pin_project/packed.rs
wasmtime-0.4.1 ./ext/cargo-vendor/pin-project-lite-0.2.9/tests/ui/pin_project/packed.rs
wasmtime-0.4.0 ./ext/cargo-vendor/pin-project-lite-0.2.9/tests/ui/pin_project/packed.rs