Sha256: f86f23d377df015182f2f5dae6464a4f98c37f2198e0646f721fedc4017cb82c

Contents?: true

Size: 1.82 KB

Versions: 30

Compression:

Stored size: 1.82 KB

Contents

use pin_project_lite::pin_project;

pin_project! {
    struct Generics1<T: 'static : Sized> { //~ ERROR no rules expected the token `:`
        field: T,
    }
}

pin_project! {
    struct Generics2<T: 'static : ?Sized> { //~ ERROR no rules expected the token `:`
        field: T,
    }
}

pin_project! {
    struct Generics3<T: Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
        field: T,
    }
}

pin_project! {
    struct Generics4<T: ?Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
        field: T,
    }
}

pin_project! {
    struct Generics5<T: Sized : ?Sized> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
        field: T,
    }
}

pin_project! {
    struct Generics6<T: ?Sized : Sized> { //~ ERROR no rules expected the token `Sized`
        field: T,
    }
}

pin_project! {
    struct WhereClause1<T>
    where
        T: 'static : Sized //~ ERROR no rules expected the token `:`
    {
        field: T,
    }
}

pin_project! {
    struct WhereClause2<T>
    where
        T: 'static : ?Sized //~ ERROR no rules expected the token `:`
    {
        field: T,
    }
}

pin_project! {
    struct WhereClause3<T>
    where
        T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
    {
        field: T,
    }
}

pin_project! {
    struct WhereClause4<T>
    where
        T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
    {
        field: T,
    }
}

pin_project! {
    struct WhereClause5<T>
    where
        T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
    {
        field: T,
    }
}

pin_project! {
    struct WhereClause6<T>
    where
        T: ?Sized : Sized //~ ERROR no rules expected the token `Sized`
    {
        field: T,
    }
}

fn main() {}

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
wasmtime-23.0.2 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/invalid-bounds.rs
wasmtime-22.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/invalid-bounds.rs
wasmtime-21.0.1 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/invalid-bounds.rs
wasmtime-20.0.2 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/invalid-bounds.rs
wasmtime-20.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/invalid-bounds.rs
wasmtime-18.0.3 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/invalid-bounds.rs
wasmtime-17.0.1 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/invalid-bounds.rs
wasmtime-17.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/invalid-bounds.rs
wasmtime-16.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/invalid-bounds.rs
wasmtime-15.0.1 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/invalid-bounds.rs
wasmtime-15.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/invalid-bounds.rs
wasmtime-14.0.4 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/invalid-bounds.rs
wasmtime-14.0.3 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/invalid-bounds.rs
wasmtime-14.0.1 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/invalid-bounds.rs
wasmtime-14.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.13/tests/ui/pin_project/invalid-bounds.rs
wasmtime-13.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.12/tests/ui/pin_project/invalid-bounds.rs
wasmtime-12.0.1 ./ext/cargo-vendor/pin-project-lite-0.2.12/tests/ui/pin_project/invalid-bounds.rs
wasmtime-12.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.12/tests/ui/pin_project/invalid-bounds.rs
wasmtime-11.0.0 ./ext/cargo-vendor/pin-project-lite-0.2.12/tests/ui/pin_project/invalid-bounds.rs
wasmtime-10.0.1 ./ext/cargo-vendor/pin-project-lite-0.2.12/tests/ui/pin_project/invalid-bounds.rs