Skip to content

multiple #[pin] attributes don't error #119

Description

@BennoLossin

The following code is accepted today:

#[pin_data]
struct Struct<T> {
    #[pin]
    #[pin]
    inner: T
}

I think we should error on the second #[pin] attribute. Complaining that the first exists already.

Reported-by: Mohamad Alsadhan mo@sdhn.cc
Link: #113 (comment)


Please only take this issue if you're not familiar with pin-init yet.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions