Skip to content

error[E0618]: expected function, found (&'static str, reindeer::DeletionBehaviour)Β #13

@STPR

Description

@STPR

Hello,
I've an issue with the Entity macro and relations.
I'm trying to make a one-to-many relationship so i'm using the following syntax:
#[siblings(("user_data",Cascade),("user_data2",Cascade))]

But the Entity macro gives me an error as soon as there's more than one relation:

error[E0618]: expected function, found `(&'static str, reindeer::DeletionBehaviour)`
   |
   | #[derive(Serialize, Deserialize, Entity)]
   |                                  ^^^^^^ call expression requires function
   |
   = note: this error originates in the derive macro `Entity` (in Nightly builds, run with -Z macro-backtrace for more info)

This happens with siblings and children.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions