Sha256: 1c84cc089623dd31f483011ed6543f169af341b028a212fcf00146bc96dd792f

Contents?: true

Size: 473 Bytes

Versions: 8

Compression:

Stored size: 473 Bytes

Contents

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

use pin_project_lite::pin_project;

pin_project! {
    struct A<T> {
        #[pin()] //~ ERROR no rules expected the token `(`
        pinned: T,
    }
}

pin_project! {
    #[pin] //~ ERROR cannot find attribute `pin` in this scope
    struct B<T> {
        pinned: T,
    }
}

pin_project! {
    struct C<T> {
        #[pin]
        #[pin] //~ ERROR no rules expected the token `#`
        pinned: T,
    }
}

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